Ignore:
Timestamp:
Apr 30, 2015, 3:22:39 PM (10 years ago)
Author:
millour
Message:

A couple of bug fixes.
Now the bench (in debug mode) yields identical results in seq/mpi/omp/mpi_omp, and also identical restart files to rev 5 (ie before any modifications to LMDZ5 source files).
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/dyn3dmem/gcm.F

    r3818 r3822  
    401401
    402402c-----------------------------------------------------------------------
     403c   Initialisation des I/O :
     404c   ------------------------
     405
     406
     407      if (nday>=0) then
     408         day_end = day_ini + nday
     409      else
     410         day_end = day_ini - nday/day_step
     411      endif
     412 
     413      WRITE(lunout,300)day_ini,day_end
     414 300  FORMAT('1'/,15x,'run du jour',i7,2x,'au jour',i7//)
     415
     416#ifdef CPP_IOIPSL
     417      call ju2ymds(jD_ref + day_ini - day_ref, an, mois, jour, heure)
     418      write (lunout,301)jour, mois, an
     419      call ju2ymds(jD_ref + day_end - day_ref, an, mois, jour, heure)
     420      write (lunout,302)jour, mois, an
     421 301  FORMAT('1'/,15x,'run du ', i2,'/',i2,'/',i4)
     422 302  FORMAT('1'/,15x,'    au ', i2,'/',i2,'/',i4)
     423#endif
     424
     425c-----------------------------------------------------------------------
    403426c   Initialisation de la physique :
    404427c   -------------------------------
     
    424447!$OMP END PARALLEL
    425448      END IF
    426 
    427 c-----------------------------------------------------------------------
    428 c   Initialisation des I/O :
    429 c   ------------------------
    430 
    431 
    432       if (nday>=0) then
    433          day_end = day_ini + nday
    434       else
    435          day_end = day_ini - nday/day_step
    436       endif
    437  
    438       WRITE(lunout,300)day_ini,day_end
    439  300  FORMAT('1'/,15x,'run du jour',i7,2x,'au jour',i7//)
    440 
    441 #ifdef CPP_IOIPSL
    442       call ju2ymds(jD_ref + day_ini - day_ref, an, mois, jour, heure)
    443       write (lunout,301)jour, mois, an
    444       call ju2ymds(jD_ref + day_end - day_ref, an, mois, jour, heure)
    445       write (lunout,302)jour, mois, an
    446  301  FORMAT('1'/,15x,'run du ', i2,'/',i2,'/',i4)
    447  302  FORMAT('1'/,15x,'    au ', i2,'/',i2,'/',i4)
    448 #endif
    449449
    450450!      if (planet_type.eq."earth") then
Note: See TracChangeset for help on using the changeset viewer.