[MITgcm-support] Compiling MITgcm

Gunnar Wollan gunnar.wollan at geo.uio.no
Tue Apr 9 05:26:30 EDT 2013


Thanks, my fault. I'll run the make depend and then compile.

Gunnar


On Apr 9, 2013, at 10:46 AM, Patrick Heimbach <heimbach at MIT.EDU> wrote:

> 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
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list