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

    r1907 r2311  
    1414!---------------------------------------------------------------------------
    1515
     16      USE print_control_mod, ONLY: prt_level,lunout
    1617      IMPLICIT NONE
    17 #include "iniprint.h"
    1818     
    1919      INTEGER ig,l
     
    103103                    print*,'detr_star(ig,l)',detr_star(ig,l)
    104104                    abort_message = ''
    105                     CALL abort_gcm (modname,abort_message,1)
     105                    CALL abort_physic (modname,abort_message,1)
    106106               endif
    107107            endif
     
    268268               print*,'N1 ig,l,entr',ig,l,entr(ig,l)
    269269               abort_message = 'entr negatif'
    270                CALL abort_gcm (modname,abort_message,1)
     270               CALL abort_physic (modname,abort_message,1)
    271271            endif
    272272            if (detr(ig,l).gt.fm(ig,l)) then
     
    297297               print*,'fm(ig,l)',fm(ig,l)
    298298               abort_message = 'probleme dans thermcell flux'
    299                CALL abort_gcm (modname,abort_message,1)
     299               CALL abort_physic (modname,abort_message,1)
    300300            endif
    301301         enddo
     
    325325               print*,'fm(ig,l)',fm(ig,l)
    326326               abort_message = 'probleme dans thermcell flux'
    327                CALL abort_gcm (modname,abort_message,1)
     327               CALL abort_physic (modname,abort_message,1)
    328328            endif
    329329        enddo
     
    427427                         print*,'fm(ig,l)',fm(ig,l)
    428428                         abort_message = 'probleme dans thermcell_flux'
    429                          CALL abort_gcm (modname,abort_message,1)
     429                         CALL abort_physic (modname,abort_message,1)
    430430                      endif
    431431                      entr(ig,l+1)=entr(ig,l+1)-ddd
     
    511511          print*,'fm(igout,l)',fm(igout,l)
    512512          abort_message = ''
    513           CALL abort_gcm (modname,abort_message,1)
     513          CALL abort_physic (modname,abort_message,1)
    514514          endif
    515515      enddo
Note: See TracChangeset for help on using the changeset viewer.