Ocean Modeling Discussion


Search for:
It is currently Sat Sep 21, 2019 7:03 am

Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Author Message
PostPosted: Thu Apr 11, 2019 3:04 pm 

Joined: Thu Mar 08, 2018 2:47 am
Posts: 68
Location: German Research Centre for Geosciences
Hi all,

I recently switched to the COAWST because I want to run both ice and sediments in an Arctic domain but couldn't solve some inconsistencies in the Kate branch code... Howver, now I am unable to solve this compiling error which seems top be about some ice routines:
/scratch/b/b380636/Arctic20km/obcatmforceriversinisedbulkice/Build/libNLM.a(main3d.o): In function `main3d':
/mnt/lustre01/scratch/b/b380636/Arctic20km/obcatmforceriversinisedbulkice/Build/main3d.f90:206: undefined reference to `ice_flux_mod_mp_ice_flux_rst_'
/mnt/lustre01/scratch/b/b380636/Arctic20km/obcatmforceriversinisedbulkice/Build/main3d.f90:210: undefined reference to `seaice_'
/scratch/b/b380636/Arctic20km/obcatmforceriversinisedbulkice/Build/libNLM.a(ini_fields.o): In function `ini_fields_tile':
/mnt/lustre01/scratch/b/b380636/Arctic20km/obcatmforceriversinisedbulkice/Build/ini_fields.f90:526: undefined reference to `ice_limit_mod_mp_ice_limit_'
make: *** [/scratch/b/b380636/Arctic20km/obcatmforceriversinisedbulkice/coawstG] Error 1

The error about main3d is really strange because in the referenced lines
            IF (PerfectRST(1).and.iic(1).eq.ntstart(1)) THEN
              DO ig=1,GridsInLayer(nl)
                DO tile=first_tile(ng),last_tile(ng),+1
                  CALL ice_flux_rst(ng, tile)
                END DO
              END DO
              CALL seaice
            END IF

the model isn't supposed to call ice_flux_rst at all since I did not set the respective CPP flag.
is this rather a compiler flag problem or is there something inconsistent in the routine wiring?
I tried to solve this the entire day but I just couldn't find the reason.
Any hint will be appreciated very much!

By the way, I also had to fix something in ice_mk.h. The call for caldate doesn't need r_date as an input and caused an error since r_date is not defined at all. I guess this hasn't been fixed after the dateclock changes... So my line 469 looks like this now:
      CALL caldate(tdays(ng),year,month,yday,hour)

And furthermore, in mod_boundary.F, I had to change the if statement for the definition of XYsize so that it is also run when ICE_MODEL is defined:
#if defined ADJUST_BOUNDARY || defined ICE_MODEL
      real(r8) :: XYsize
Otherwhise it will be an unknown variable later in the ICE_MODEL section of the routine...

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group