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

    r2159 r2311  
    4444
    4545    ALLOCATE(alf1(klon), stat=ierr)
    46     IF (ierr /= 0) CALL abort_gcm(modname,'Pb in allocate alf1',1)
     46    IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocate alf1',1)
    4747
    4848    ALLOCATE(alf2(klon), stat=ierr)
    49     IF (ierr /= 0) CALL abort_gcm(modname,'Pb in allocate alf2',1)
     49    IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocate alf2',1)
    5050
    5151    ALLOCATE(Kcoefm(klon,klev), stat=ierr)
    52     IF (ierr /= 0) CALL abort_gcm(modname,'Pb in allocate Kcoefm',1)
     52    IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocate Kcoefm',1)
    5353
    5454    ALLOCATE(Ccoef_U(klon,klev), stat=ierr)
    55     IF (ierr /= 0) CALL abort_gcm(modname,'Pb in allocate Ccoef_U',1)
     55    IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocate Ccoef_U',1)
    5656
    5757    ALLOCATE(Dcoef_U(klon,klev), stat=ierr)
    58     IF (ierr /= 0) CALL abort_gcm(modname,'Pb in allocation Dcoef_U',1)
     58    IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocation Dcoef_U',1)
    5959
    6060    ALLOCATE(Ccoef_V(klon,klev), stat=ierr)
    61     IF (ierr /= 0) CALL abort_gcm(modname,'Pb in allocation Ccoef_V',1)
     61    IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocation Ccoef_V',1)
    6262
    6363    ALLOCATE(Dcoef_V(klon,klev), stat=ierr)
    64     IF (ierr /= 0) CALL abort_gcm(modname,'Pb in allocation Dcoef_V',1)
     64    IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocation Dcoef_V',1)
    6565
    6666    ALLOCATE(Acoef_U(klon), Bcoef_U(klon), Acoef_V(klon), Bcoef_V(klon), STAT=ierr)
Note: See TracChangeset for help on using the changeset viewer.