ESMCI / cmeps-cime

This is a "fork" of the cime repository that has the development version of the nuopc CMEPS driver and mediator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

update of orbital parameters at run time

mvertens opened this issue · comments

In the MCT driver, the orbital parameters were updated in the driver at run time via the following code:

! update the orbital data as needed
       if (trim(orb_mode) == trim(seq_infodata_orb_variable_year)) then
          orb_nyear =  orb_iyear + (year - orb_iyear_align)
          if (orb_nyear /= orb_cyear) then
             orb_cyear = orb_nyear
             call shr_orb_params(orb_cyear, orb_eccen, orb_obliq, orb_mvelp, &
                  orb_obliqr, orb_lambm0, orb_mvelpp, iamroot_CPLID)
             call seq_infodata_putData(infodata,orb_eccen=orb_eccen,orb_obliqr=orb_obliqr, &
                  orb_lambm0=orb_lambm0,orb_mvelpp=orb_mvelpp)
          endif
       endif

In CMEPS, it seems that every component needs to update its own orbital settings based on the clock
and its attribute of orb_variable_year