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/dyn3dpar/gcm.F

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