[MITgcm-support] Compiling MITgcm

Patrick Heimbach heimbach at MIT.EDU
Tue Apr 9 04:46:26 EDT 2013


Hi Gunnar,

the "_d" should be replaced "automatically" by the CPP preprocessor.
I think you forgot to do
make depend
before doing
make

So try this order:
1. invoke genmake2
2. make depend
3. make

p.

On Apr 9, 2013, at 4:31 AM, Gunnar Wollan <gunnar.wollan at geo.uio.no> wrote:

> I am trying to compile the MITgcm model on our cluster, but I get these errors:
> 
> ./EEPARAMS.h(81): error #6975: A kind-param must be a digit-string or a scalar-int-constant-name   [D0]
>      PARAMETER ( twoRL  = 2.0 _d 0 , halfRL = 0.5 _d 0 )
> ------------------------------------------^
> ./EEPARAMS.h(81): error #6592: This symbol must be a defined parameter, an enumerator, or an argument of an inquiry function that evaluates to a compile-time constant.   [D0]
>      PARAMETER ( twoRL  = 2.0 _d 0 , halfRL = 0.5 _d 0 )
> --------------------------------------------------------------------^
> 
> 
> it seems that the Intel fort compiler does not recognise the "0.5 _d 0" as a double precision value, but expects something like this:
> 
> halfRL = 0.5d0
> 
> without the spaces and the underscore.
> 
> My question is if these values are auto generated at build time or hardcoded in the source files. Is there a compiler flag I can
> use to get around this problem or do I have to change the code itself?
> 
> 
> 
> Best regards
> Gunnar Wollan
> 
> Scientific Programmer
> Dept. of Geosciences
> University of Oslo
> 
> 
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support


---
Patrick Heimbach | heimbach at mit.edu | http://www.mit.edu/~heimbach
MIT | EAPS 54-1420 | 77 Massachusetts Ave | Cambridge MA 02139 USA
FON +1-617-253-5259 | FAX +1-617-253-4464 | SKYPE patrick.heimbach

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1588 bytes
Desc: not available
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20130409/09e6a3c3/attachment.p7s>


More information about the MITgcm-support mailing list