Compile CALMM5

Hellow

I’m trying to compile the CALMM5 code (http://www.src.com/calpuff/download/mod6_codes.htm) with PGI 10.5 on a Linux cluster (centos, 64-bit) for the air quality modeling.

After I refered the post (http://www.pgroup.com/userforum/viewtopic.php?t=696&start=0&postdays=0&postorder=asc&highlight=), I think, the compiling might be well done.

compile: “pgf90 calmm5.f -L${NETCDF}/lib -lnetcdf -lnetcdff -lm -I${NETCDF}/include -Mpreprocess -o calmm5.exe”

The clamm5 executable is made.

But when I run the calmm5.exe, it make “segmentation fault”.

How to solve the problem?
Thank you…

Hi Happyez,

You’ll need to debug the program or contact the authors. To debug, compile with the “-g” flag and then run the code through the PGI Debugger, PGDBG. If you have never used a debugger before, you can find the full documentation for PGDBG at http://www.pgroup.com/doc/pgdbgug.pdf.

  • Mat