Ignore:
Timestamp:
Jun 25, 2015, 9:45:24 AM (9 years ago)
Author:
Ehouarn Millour
Message:

Further modifications to enforce physics/dynamics separation:

  • moved iniprint.h and misc_mod back to dyn3d_common, as these should only be used by dynamics.
  • created print_control_mod in the physics to store flags prt_level, lunout, debug to be local to physics (should be used rather than iniprint.h)
  • created abort_physic.F90 , which does the same job as abort_gcm() did, but should be used instead when in physics.
  • reactivated inifis (turned it into a module, inifis_mod.F90) to initialize physical constants and print_control_mod flags.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/condsurf.F90

    r1992 r2311  
    5656  IF (jour<0 .OR. jour>(360-1)) THEN
    5757    PRINT *, 'Le jour demande n est pas correct: ', jour
    58     CALL abort_gcm('condsurf', '', 1)
     58    CALL abort_physic('condsurf', '', 1)
    5959  END IF
    6060
     
    7676    PRINT *, ' trouve pas sur les ', nannemax, ' annees a partir de '
    7777    PRINT *, ' l annee de debut', annee_ref
    78     CALL abort_gcm('condsurf', '', 1)
     78    CALL abort_physic('condsurf', '', 1)
    7979
    8080100 CONTINUE
     
    9696      WRITE (6, *) '       l an 2000 )  ,  n existe  pas !  '
    9797      WRITE (6, *) ' ierr = ', ierr
    98       CALL abort_gcm('condsurf', '', 1)
     98      CALL abort_physic('condsurf', '', 1)
    9999    END IF
    100100    ! DO k = 1, jour
     
    109109    ierr = nf_inq_varid(nid, 'BILS', nvarid)
    110110    IF (ierr/=nf_noerr) THEN
    111       CALL abort_gcm('cond_surf', 'Le champ <BILS> est absent', 1)
     111      CALL abort_physic('cond_surf', 'Le champ <BILS> est absent', 1)
    112112    END IF
    113113    PRINT *, 'debut,epais', debut, epais, 'jour,jourvrai', jour, jourvrai
     
    118118#endif
    119119    IF (ierr/=nf_noerr) THEN
    120       CALL abort_gcm('condsurf', 'Lecture echouee pour <BILS>', 1)
     120      CALL abort_physic('condsurf', 'Lecture echouee pour <BILS>', 1)
    121121    END IF
    122122    ! ENDDO !k = 1, jour
Note: See TracChangeset for help on using the changeset viewer.