[MITgcm-support] compile problems with regional statistics

Martin Losch Martin.Losch at awi.de
Thu Sep 30 15:47:31 EDT 2010


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




More information about the MITgcm-support mailing list