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

    r1931 r2311  
    4141        write(6,*)' Pb d''ouverture du fichier '//filename
    4242        write(6,*)' ierr = ', ierr
    43         CALL ABORT_GCM("", "", 1)
     43        CALL abort_physic("", "", 1)
    4444      ENDIF
    4545    ENDIF
     
    166166      IF (.NOT. tmp_found) THEN
    167167        PRINT*, 'phyetat0: Le champ <'//field_name//'> est absent'
    168         call abort_gcm("", "", 1)
     168        call abort_physic("", "", 1)
    169169      ENDIF
    170170    ENDIF
     
    186186              IF (ierr/=NF90_NOERR) THEN
    187187                 PRINT*, 'phyetat0: Lecture echouee aussi en 2D pour <'//field_name//'>'
    188                  call abort_gcm("", "", 1)
     188                 call abort_physic("", "", 1)
    189189              ELSE
    190190                 PRINT*, 'phyetat0: La variable <'//field_name//'> lu sur surface seulement'!, selon ancien format, le reste mis a zero'
    191191              END IF
    192192           ELSE
    193               call abort_gcm("", "", 1)
     193              call abort_physic("", "", 1)
    194194           ENDIF
    195195         ENDIF
     
    282282        IF (ierr/=NF90_NOERR) THEN
    283283          PRINT*, 'phyetat0: Lecture echouee pour <'//var_name//'>'
    284           call abort_gcm("", "", 1)
     284          call abort_physic("", "", 1)
    285285        ENDIF
    286286        tmp_found=.TRUE.
     
    302302      IF (.NOT. tmp_found) THEN
    303303        PRINT*, 'phyetat0: La variable champ <'//var_name//'> est absente'
    304         call abort_gcm("", "", 1)
     304        call abort_physic("", "", 1)
    305305      ENDIF
    306306    ENDIF
     
    323323        write(6,*)' Pb d''ouverture du fichier '//filename
    324324        write(6,*)' ierr = ', ierr
    325         CALL ABORT_GCM("", "", 1)
     325        CALL abort_physic("", "", 1)
    326326      ENDIF
    327327
     
    410410      ELSE
    411411        PRINT *, "erreur phyredem : probleme de dimension"
    412         CALL ABORT_GCM("", "", 1)
     412        CALL abort_physic("", "", 1)
    413413      ENDIF
    414414         
     
    487487      IF (var_size/=length) THEN
    488488        PRINT *, "erreur phyredem : probleme de dimension"
    489         call abort_gcm("", "", 1)
     489        call abort_physic("", "", 1)
    490490      ENDIF
    491491     
Note: See TracChangeset for help on using the changeset viewer.