Ignore:
Timestamp:
Dec 20, 2013, 4:04:56 PM (11 years ago)
Author:
emillour
Message:

Mars GCM:
Series of changes to enable running in parallel (using LMDZ.COMMON dynamics);
Current LMDZ.MARS can still notheless be compiled and run in serial mode
"as previously".
Summary of main changes:

  • Main programs (newstart, start2archive, xvik) that used to be in dyn3d have been moved to phymars.
  • dyn3d/control.h is now module control_mod.F90
  • rearanged input/outputs routines everywhere to handle serial/MPI cases. physdem.F => phyredem.F90 , phyetat0.F => phyetat0.F90 ; all read/write routines for startfi files are gathered in module iostart.F90
  • added parallelism related routines init_phys_lmdz.F90, comgeomphy.F90, dimphy.F90, iniphysiq.F90, mod_grid_phy_lmdz.F90, mod_phys_lmdz_mpi_data.F90, mod_phys_lmdz_mpi_transfert.F90, mod_phys_lmdz_omp_data.F90, mod_phys_lmdz_omp_transfert.F90, mod_phys_lmdz_para.F90, mod_phys_lmdz_transfert_para.F90 in phymars and mod_const_mpi.F90 in dyn3d (for compliance with parallel case)
  • created generic routines 'planetwide_maxval' and 'planetwide_minval', in module "planetwide_mod", that enable obtaining the min and max of a field over the whole planet.

EM

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/start2archive.F

    r1087 r1130  
    1919c=======================================================================
    2020
    21       use infotrac, only: iniadvtrac, nqtot, tnom
     21      use infotrac, only: iniadvtrac, nqtot, tname
    2222      use comsoil_h, only: nsoilmx, inertiedat
    2323      use surfdat_h, only: ini_surfdat_h
    2424      use comsoil_h, only: ini_comsoil_h
     25      use comgeomphy, only: initcomgeomphy
    2526      implicit none
    2627
     
    3435#include "logic.h"
    3536#include "temps.h"
    36 #include "control.h"
     37!#include "control.h"
    3738#include "ener.h"
    3839#include "description.h"
     
    119120      CALL defrun_new(99, .TRUE. )
    120121      grireg   = .TRUE.
     122! initialize "serial/parallel" related stuff
     123      CALL init_phys_lmdz(iim,jjp1,llm,1,(/(jjm-1)*iim+2/))
     124      call initcomgeomphy
    121125
    122126c=======================================================================
     
    355359c        call write_archive(nid,ntime,'q'//str2,'tracer','kg/kg',
    356360c     .         3,q(1,1,iq))
    357         call write_archive(nid,ntime,tnom(iq),'tracer','kg/kg',
     361        call write_archive(nid,ntime,tname(iq),'tracer','kg/kg',
    358362     &         3,q(1,1,iq))
    359363      end do
     
    365369c       call write_archive(nid,ntime,'qsurf'//str2,'Tracer on surface',
    366370c     $  'kg.m-2',2,qsurfS(1,iq))
    367         txt=trim(tnom(iq))//"_surf"
     371        txt=trim(tname(iq))//"_surf"
    368372        call write_archive(nid,ntime,txt,'Tracer on surface',
    369373     &  'kg.m-2',2,qsurfS(1,iq))
     
    404408c-----------------------------------------------------------------------
    405409
     410      write(*,*) "startarchive: all is well that ends well"
     411     
    406412      end
Note: See TracChangeset for help on using the changeset viewer.