| 1 | == Getting CRM to Compile on LINUX == |
| 2 | To get CRM to compile under LINUX you will first have to edit the Makefile. You will need to point NETCDF_INC and NETCDF_LIB to a pgi compiled version of the libraries. Next, in the LINUX options, add the '-Mextend' flag to the FC options after pgf90. This should be around line 180. |
| 3 | |
| 4 | After this, you will need to make one code modification. In the file src/ccmlsm_share/getmem.F line 44 should be |
| 5 | {{{#if ( defined SUN ) || ( defined RS6K ) || ( defined SGI )}}} |
| 6 | |
| 7 | The compiler has trouble finding the intrinsic function malloc without this. |
| 8 | Under these options, CRM should use gcc and pgf90 to compile. |