Changes between Initial Version and Version 1 of Ticket #686


Ignore:
Timestamp:
05/04/16 17:36:42 (8 years ago)
Author:
arango
Comment:

I do not know what this is all about. In initial.F, we have:

#ifdef INI_FILE
!
!  Read in initial conditions from initial NetCDF file.
!
      DO ng=1,Ngrids
!$OMP MASTER
        CALL get_state (ng, iNLM, 1, INI(ng)%name,                      &
     &                  IniRec(ng), Tindex(ng))
!$OMP END MASTER
# ifdef DISTRIBUTE
        CALL mp_bcasti (ng, iNLM, exit_flag)
# endif
!$OMP BARRIER
        IF (exit_flag.ne.NoError) RETURN
        time(ng)=io_time                     ! needed for shared-memory
      END DO
#else
!
!  If restart, read in initial conditions restart NetCDF file.
!
      DO ng=1,Ngrids
        IF (nrrec(ng).ne.0) THEN
!$OMP MASTER
          CALL get_state (ng, 0, 1, INI(ng)%name,                      &
     &                    IniRec(ng), Tindex(ng))
!$OMP END MASTER
# ifdef DISTRIBUTE
          CALL mp_bcasti (ng, iNLM, exit_flag)
# endif
!$OMP BARRIER
          IF (exit_flag.ne.NoError) RETURN
          time(ng)=io_time                   ! needed for shared-memory
        END IF
      END DO
#endif

This section of the code reads initial conditions from a NetCDF file (ININAME). It can read an initial conditions, history or restart NetCDF file. Notice that the internal C-preprocessing option INI_FILE is set in globaldef.h as:

#if  !defined ANA_INITIAL || \
    ( defined BIOLOGY     && !defined ANA_BIOLOGY)  || \
    ( defined T_PASSIVE   && !defined ANA_PASSIVE)  || \
    ( defined SEDIMENT    && !defined ANA_SEDIMENT) || \
    ( defined BBL_MODEL   && !defined ANA_SEDIMENT)
# define INI_FILE
#endif

So this code is never present when ANA_INITIAL is activated.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #686

    • Property ResolutionInvalid
    • Property Status newclosed
  • Ticket #686 – Description

    initial v1  
    1 With ANA_INITIAL, the model time gets overwritten:
     1With '''ANA_INITIAL''', the model time gets overwritten:
    22
    33{{{
     
    55}}}
    66
    7 so that setting DSTART is ignored. io_time is set in get_state.F which isn't called in the ANA_INITIAL case.
     7so that setting '''DSTART''' is ignored. The variable '''io_time''' is set in '''get_state.F''' which isn't called in the '''ANA_INITIAL''' case. I don't see how '''INI_FILE''' can be activated with analytical initial conditions.