Opened 16 years ago

Closed 16 years ago

#250 closed defect (WorksForMe)

ANA_PASSIVE no longer working?

Reported by: kate Owned by: arango
Priority: major Milestone: Release ROMS/TOMS 3.2
Component: Nonlinear Version: 3.2
Keywords: Cc:

Description (last modified by arango)

I had a configuration with one uniform passive tracer, set in ana_passive, but requiring explicit boundary conditions. I'm now getting an error:

 NLM: CHECKVARS - unable to find model variable: dye_01
                  in file: /wrkdir/kate/NEP5/Files/NEP5_SODA_1999.nc

What happened?

Change History (1)

comment:1 by arango, 16 years ago

Description: modified (diff)
Resolution: WorksForMe
Status: newclosed
Type: bugdefect

I cannot reproduce your problem. I added a passive tracer to the DAMEE_4 application and set T_PASSIVE and ANA_PASSIVE and everything is working fine. In checkvars.F we have:

      DO i=1,Nvar
        get_var(i)=.FALSE.
        have_var(i)=.FALSE.
      END DO
...

# if defined T_PASSIVE
#  if defined ANA_PASSIVE
      IF (nrrec(ng).ne.0) THEN
        DO itrc=1,NPT
          get_var(idTvar(inert(itrc)))=.TRUE.
        END DO
      END IF
#  else
      DO itrc=1,NPT
        get_var(idTvar(inert(itrc)))=.TRUE.
      END DO
#  endif
# endif

This implies that ROMS expects to see the passive tracer variable in INIname NetCDF file only during restart. There is not need to recompile and turn off ANA_PASSIVE. A restart file should have such field when you are restarting (nrrec(ng).ne.0). We do exactly the same thing biology and sediment applications.

Note: See TracTickets for help on using tickets.