Changeset 1506 for trunk/LMDZ.VENUS/libf


Ignore:
Timestamp:
Dec 24, 2015, 2:10:58 PM (9 years ago)
Author:
emillour
Message:

Venus GCM:
Some minor modifications to compile/run with gfortran:

  • removed reference to intrinsic "ieee_arithmetic" module (only available with gfortran v5 and higher), and replaced calls to intrinsic "ieee_is_nan" with equivalent tests in physiq.F
  • added a LAPACK preprocessing flag around calls to dgesv (Lapack subroutine) in new_photochemistry_venus.F90 and adapted MESU and OCCIGEN arch files (GNOME and ADA arch files already include this flag).

EM

Location:
trunk/LMDZ.VENUS/libf/phyvenus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.VENUS/libf/phyvenus/new_photochemistry_venus.F90

    r1452 r1506  
    183183   
    184184      cnew(iz,:) = c(iz,:)
     185#ifdef LAPACK
    185186      call dgesv(nesp,1,mat,nesp,indx,cnew(iz,:),nesp,code)
     187#else
     188   write(*,*) "new_photochemistry_venus error, missing LAPACK routine dgesv"
     189   stop
     190#endif
    186191! eliminate small values
    187192
     
    243248   
    244249         cnew(iz,:) = c(iz,:)
     250#ifdef LAPACK
    245251         call dgesv(nesp,1,mat,nesp,indx,cnew(iz,:),nesp,code)
     252#else
     253   write(*,*) "new_photochemistry_venus error, missing LAPACK routine dgesv"
     254   stop
     255#endif
    246256
    247257      end if
  • trunk/LMDZ.VENUS/libf/phyvenus/physiq.F

    r1460 r1506  
    6969      USE compo_hedin83_mod2
    7070      use moyzon_mod, only: tmoy
    71       use ieee_arithmetic
     71!      use ieee_arithmetic
    7272      use temps_mod, only: itau_phy,day_ref,annee_ref
    7373      use logic_mod, only: iflag_trac
     
    962962c--------------------
    963963c   Ce test est necessaire pour eviter Xliq=NaN   
    964         IF (ieee_is_nan(d_tr_sed(i,k,1)).OR.
    965      &  ieee_is_nan(d_tr_sed(i,k,2))) THEN
     964!        IF (ieee_is_nan(d_tr_sed(i,k,1)).OR.
     965!     &  ieee_is_nan(d_tr_sed(i,k,2))) THEN
     966        IF ((d_tr_sed(i,k,1).ne.d_tr_sed(i,k,1)).OR.
     967     &      (d_tr_sed(i,k,2).ne.d_tr_sed(i,k,2))) THEN
    966968        PRINT*,'sedim NaN PROBLEM'
    967969        PRINT*,'d_tr_sed Nan?',d_tr_sed(i,k,:),'Temp',t_seri(i,k)
Note: See TracChangeset for help on using the changeset viewer.