[MITgcm-support] use seaice variables in ptracers
Yilang Xu
yxu at whoi.edu
Wed Apr 8 14:24:54 EDT 2020
Hi Sandy,
Yes this has solved the problem. Thank you very much!
Best,
Yilang
From: MITgcm-support <mitgcm-support-bounces at mitgcm.org> on behalf of <Sandy.Gregorio at uqar.ca>
Reply-To: <mitgcm-support at mitgcm.org>
Date: Wednesday, April 8, 2020 at 14:14
To: <mitgcm-support at mitgcm.org>
Subject: Re: [MITgcm-support] use seaice variables in ptracers
Hi Yilang,
I added
#include "SEAICE_SIZE.h"
#include "SEAICE_PARAMS.h"
#include "SEAICE.h"
in my ptracers_forcing_surf.F file to include ice AREA and it has compiled well.
Hope this helps.
Cheers,
Sandy
De : MITgcm-support <mitgcm-support-bounces at mitgcm.org> de la part de Yilang Xu <yxu at whoi.edu>
Envoyé : mercredi 8 avril 2020 14:08
À : mitgcm-support at mitgcm.org
Objet : [MITgcm-support] use seaice variables in ptracers
Hi everyone,
I want to use variables such as AREA from seaice pkg in ptracers pkg. My modification occurs in ptracers_reset.F, and I put #include "SEAICE.h" among others like #include "SIZE.h", etc.
However, when I compile the code, error messages occur near the beginning of compilation (shown below).
There is no seaice*.f in the directory, so the compilation hasn’t reached the seaice pkg yet.
If I exclude all the seaice part in ptracers_reset.F, the code works well. I am wondering what should be modified.
Thanks,
Yilang
Error message:
ptracers_reset.f(3560): error #6756: A COMMON block data object must not be an automatic object. [TICES]
COMMON/MULTICATEGORY/TICES
---------------------------^
ptracers_reset.f(3561): error #6219: This variable, used in a specification expression, must be a dummy argument, a COMMON block object, or an object accessible through host or use association. [NITD]
Real*8 TICES (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nITD,nSx,nSy)
-----------------------------------------------------^
compilation aborted for ptracers_reset.f (code 1)
make[1]: *** [ptracers_reset.o] Error 1
make[1]: Leaving directory `/vortexfs1/home/yxu/MITgcm/verification/isomip/20200408_build'
make: *** [fwd_exe_target] Error 2
________________________________
Yilang Xu
Ph.D. Student
Applied Ocean Physics and Engineering
MIT-WHOI Joint Program
_______________________________________________ MITgcm-support mailing list MITgcm-support at mitgcm.org http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20200408/503c6ae0/attachment-0001.html>
More information about the MITgcm-support
mailing list