how ofthen does POP call "ocn_import_mct"

Hi, I noticed that there is a 'ocn_import_mct' subroutine in ocn_comp_mct.F90, and the routine aims to receives message (taux/tauy) from cpl7 driver.I want to know how ofthen does POP call this routine? It seems that POP just call it once at the begining.If so, how does POP receive messeages from coupler? Thanks! 
 

njn01

Member
CESM POP2 communicates with the coupler (sends and receives) every ocean-model communication interval.  By default, this interval is one day.
See ocn_run_* in the ocn_comp_*.F90 modules.
 
 Thanks.  I follow your advice and see ocn_run_mct in ocn_comp_mct.F90. I noticed 'ocn_import_mct' lies near line622, however I'm confused there is an if-then-endif strcture,  and it seems POP only call ocn_import_mct at the beginning.   ps: my cesm version is 1.2.1CODES: advance:  do        ! obtain import state from driver       if (check_time_flag(cpl_ts) .or. nsteps_run == 0) then          call ocn_import_mct(x2o_o, errorCode)           if (errorCode /= POP_Success) then             call POP_ErrorPrint(errorCode)             call exit_POP(sigAbort, 'ERROR in step')          endif           call pop_set_coupled_forcing       end if 
 

njn01

Member
In line 621, the expression check_time_flag(cpl_ts) is true every ocn coupling interval; by default, this is once per day.
 
Back
Top