Ignore:
Timestamp:
Jun 14, 2013, 9:17:44 AM (12 years ago)
Author:
emillour
Message:

Generic GCM:

  • Some minor changes so that gcm compiles with gfortran:
    • Added option to compile "long lines" (>132 characters) in makegcm_gfortran
    • Removed use of isnan() in physiq.F90 (it is not a standard function)
    • Avoid possible underflow of psat in watercommon_h.F90
    • Adapted the checks on the *IR and *VI band files to be more strict

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/setspv.F90

    r789 r989  
    4444
    4545      real*8 STELLAR(L_NSPECTV)
    46       real*8 sum
     46      real*8 sum, dummy
    4747
    4848      !! used to count lines
    49       integer :: nb=-1  !because first line is not an actual value
     49      integer :: nb=0
    5050      integer :: ierr=0
    5151
     
    7272      ! check that the file contains the right number of bands
    7373      open(131,file=file_path,form='formatted')
     74      read(131,*,iostat=ierr) file_entries
    7475      do while (ierr==0)
    75         read(131,*,iostat=ierr) file_entries
     76        read(131,*,iostat=ierr) dummy
    7677        if (ierr==0) nb=nb+1
    7778      enddo
    7879      close(131)
     80
    7981      write(*,*) 'setspv: L_NSPECTV = ',L_NSPECTV, 'in the model '
    8082      write(*,*) '        there are   ',nb, 'entries in ',TRIM(file_path)
Note: See TracChangeset for help on using the changeset viewer.