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/oasis.F90

    r2054 r2311  
    9999    USE wxios, ONLY : wxios_context_init
    100100#endif
    101 
     101    USE print_control_mod, ONLY: lunout
    102102
    103103    INCLUDE "dimensions.h"
    104     INCLUDE "iniprint.h"
    105104
    106105! Local variables
     
    218217       IF (ierror .NE. PRISM_Ok) THEN
    219218          abort_message=' Probleme init dans prism_init_comp '
    220           CALL abort_gcm(modname,abort_message,1)
     219          CALL abort_physic(modname,abort_message,1)
    221220       ELSE
    222221          WRITE(lunout,*) 'inicma : init psmile ok '
     
    240239    IF (ierror .NE. PRISM_Ok) THEN
    241240       abort_message=' Probleme dans prism_def_partition '
    242        CALL abort_gcm(modname,abort_message,1)
     241       CALL abort_physic(modname,abort_message,1)
    243242    ELSE
    244243       WRITE(lunout,*) 'inicma : decomposition domaine psmile ok '
     
    268267                  inforecv(jf)%name
    269268             abort_message=' Problem in call to prism_def_var_proto for fields to receive'
    270              CALL abort_gcm(modname,abort_message,1)
     269             CALL abort_physic(modname,abort_message,1)
    271270          ENDIF
    272271       ENDIF
     
    286285                  infosend(jf)%name
    287286             abort_message=' Problem in call to prism_def_var_proto for fields to send'
    288              CALL abort_gcm(modname,abort_message,1)
     287             CALL abort_physic(modname,abort_message,1)
    289288          ENDIF
    290289       ENDIF
     
    297296    IF (ierror .NE. PRISM_Ok) THEN
    298297       abort_message=' Problem in call to prism_endef_proto'
    299        CALL abort_gcm(modname,abort_message,1)
     298       CALL abort_physic(modname,abort_message,1)
    300299    ELSE
    301300       WRITE(lunout,*) 'inicma : endef psmile ok '
     
    320319!======================================================================
    321320!
     321    USE print_control_mod, ONLY: lunout
    322322    INCLUDE "dimensions.h"
    323     INCLUDE "iniprint.h"
    324323! Input arguments
    325324!************************************************************************************
     
    362361              WRITE (lunout,*)  'Error with receiving filed : ', inforecv(i)%name, ktime   
    363362              abort_message=' Problem in prism_get_proto '
    364               CALL abort_gcm(modname,abort_message,1)
     363              CALL abort_physic(modname,abort_message,1)
    365364          ENDIF
    366365      ENDIF
     
    382381!
    383382!
     383    USE print_control_mod, ONLY: lunout
    384384    INCLUDE "dimensions.h"
    385     INCLUDE "iniprint.h"
    386385! Input arguments
    387386!************************************************************************************
     
    444443              WRITE (lunout,*) 'Error with sending field :', infosend(i)%name, ktime   
    445444              abort_message=' Problem in prism_put_proto '
    446               CALL abort_gcm(modname,abort_message,1)
     445              CALL abort_physic(modname,abort_message,1)
    447446          ENDIF
    448447      ENDIF
     
    459458          IF (ierror .NE. PRISM_Ok) THEN
    460459             abort_message=' Problem in prism_terminate_proto '
    461              CALL abort_gcm(modname,abort_message,1)
     460             CALL abort_physic(modname,abort_message,1)
    462461          ENDIF
    463462       ENDIF
Note: See TracChangeset for help on using the changeset viewer.