[MITgcm-support] compile problems with regional statistics

Brian Rose brose at MIT.EDU
Thu Sep 30 16:04:52 EDT 2010


Martin,
Many thanks - that seems to have done the trick.
I was missing sizRegMsk

Brian

On Sep 30, 2010, at 3:47 PM, Martin Losch wrote:

> Brian,
> 
> have a look at your DIAGNOSTICS_SIZE.h and compare with the one in pkg/diagnostics
> It should have a line like this:
>      PARAMETER( nRegions = 0 , sizRegMsk = 1 , nStats = 4 )
> that defines sizRegMsk (and the corresponding defining statement INTEGER sizRegMsk)
> 
> M.
> 
> 
> On Sep 30, 2010, at 3:42 PM, Brian Rose wrote:
> 
>> Hi all,
>> 
>> I'm trying to turn on the regional statistics feature in the diagnostics package.
>> When I modify DIAG_OPTIONS.h to include
>> #define DIAGSTATS_REGION_MASK
>> 
>> I get the following compiler errors:
>> 
>> fortcom: Error: diagnostics_readparms.f, line 1775: A COMMON block data object must not be an automatic object.   [DIAGST_REGMASK]
>>      Real*8       diagSt_regMask(1-OLx:sNx+Olx,1-Oly:sNy+Oly,
>> -------------------^
>> fortcom: Error: diagnostics_readparms.f, line 1776: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association   [SIZREGMSK]
>>     &                         sizRegMsk,nSx,nSy)
>> -------------------------------^
>> compilation aborted for diagnostics_readparms.f (code 1)
>> 
>> I'm compiling with ifort+mpi on beagle.  My optfile is attached below.  I'm not sure what other info about my setup is necessary to help me diagnose what's wrong...  please let me know!
>> 
>> Cheers
>> Brian
>> 
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
>> Brian E.J. Rose, PhD
>> Postdoctoral Associate, Climate Dynamics
>> Department of Earth, Atmospheric and Planetary Sciences
>> Massachusetts Institute of Technology
>> office: 54-1721          phone: 617-253-5935
>> email:  brose at mit.edu
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
>> 
>> 
>> <linux_amd64_ifort+mpi_beagle>
>> _______________________________________________
>> MITgcm-support mailing list
>> MITgcm-support at mitgcm.org
>> http://mitgcm.org/mailman/listinfo/mitgcm-support
> 
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Brian E.J. Rose, PhD
Postdoctoral Associate, Climate Dynamics
Department of Earth, Atmospheric and Planetary Sciences
Massachusetts Institute of Technology
office: 54-1721          phone: 617-253-5935
email:  brose at mit.edu
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20100930/84ad30e1/attachment.htm>


More information about the MITgcm-support mailing list