Openfoam v2106 built with debug does not include scotch
I have been using parallel processing on several openfoam versions. Recently, I built openfoam v2106 from source with debug turned on in etc/bashrc file. All other tutorials are running fine as well but when I try to use scotch decomposition, it gives me the following error:
Decomposition method scotch  (region region0) --> FOAM FATAL ERROR: (openfoam-2106) Attempted to use <scotch> without the scotchDecomp library loaded. This message is from the dummy scotchDecomp stub library instead. Please install <scotch> and ensure libscotch.so is in LD_LIBRARY_PATH. The scotchDecomp library can then be built from src/parallel/decompose/scotchDecomp. Dynamically loading or linking this library will add <scotch> as a decomposition method.
Please help resolve this.