Changeset 849


Ignore:
Timestamp:
Nov 22, 2012, 9:10:25 AM (12 years ago)
Author:
emillour
Message:

Work on common dynamics and interfacing with different physics:

  • Put calls to PVtheta in dynamics between CPP_EARTH flags (because it calls tetalevel, which is supposed to be in the physics; only OK for Earth...).
  • Adapted makelmdz script so that one can compile main programs in dyn* or phy* (makelmdz_fcm already capable of doing that).
  • Moved start2archive-VT.F and start2archive-VT.F to phyvenus (as start2archive.F and newstart.F); leave adapting them to Titan for later.
  • Small correction to phyvenus/testphys1d.F (use module control_mod instead of control.h and call disvert_noterre).
  • removed "use histcom" in phyvenus/physiq.F and phytitan/physiq.F ; it is not needed since there is already a "use ioipsl" (and it moreover confused makelmdz_fcm...)
  • Had to add declaration of variable "zlsm1" in phytitan/physiq.F because it is used in "write_hist.h"; but note that it is used while not initialized (but what should it be initialized to?).

EM

Location:
trunk
Files:
8 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/DOC/chantiers/compilation.txt

    r119 r849  
    2121Compils ok.
    2222
     23Ehouarn (22/11/2012):
     24- OK pour faire qu'on puisse compiler des exécutables situés dans phy*
     25- On est d'accord pour n'utiliser plus que "makelmdz" et "makelmdz_fcm"
     26- reste à faire que makelmdz_fcm soit capable de compiler des sources
     27  Fortran et C (pour Titan)
  • trunk/DOC/chantiers/meschantiers-Ehouarn.txt

    r841 r849  
    1616  "Terrestre" rev. 1678) avec la rev 841.
    1717  Reste à faire l'exercice de validation des modifs en //...
     18  Avec rev 841 et 843 Cp(T) en // OK
     19  Reste toutefois à paufiner les choses au niveau de calfis_p et des
     20  domaines d'utilisation de tpot2t_p et t2tpot_p (toutes les taches MPI
     21  font l'intégralité du travail!)
    1822
    1923- Faire qu'on puisse compiler un exécutable qui serait dans la physique
    20   avec makelmdz & makelmdz_fcm.
     24  avec makelmdz & makelmdz_fcm. OK avec la rev 849.
     25  Manque encore la possibilité de compiler des sources en C avec makelmdz_fcm
  • trunk/LMDZ.COMMON/libf/dyn3d/calfis.F

    r841 r849  
    462462c
    463463      if (planet_type=="earth") then
    464 #ifdef CPP_PHYS
     464#ifdef CPP_EARTH
    465465! PVtheta calls tetalevel, which is in the (Earth) physics
    466466cIM calcul PV a teta=350, 380, 405K
  • trunk/LMDZ.COMMON/libf/dyn3dpar/calfis_p.F

    r847 r849  
    512512
    513513      IF (is_sequential.and.(planet_type=="earth")) THEN
    514 #ifdef CPP_PHYS
     514#ifdef CPP_EARTH
    515515! PVtheta calls tetalevel, which is in the physics
    516516cIM calcul PV a teta=350, 380, 405K
  • trunk/LMDZ.COMMON/makelmdz

    r270 r849  
    544544#################################################################
    545545
    546 source_code=${code}.F
    547 if [[ -r $LMDGCM/libf/dyn${dimc}d${FLAG_PARA}/${code}.F90 ]]
    548 then
    549   source_code=${code}.F90
     546# find code suffix and directory where code is located
     547if [[ -r $LMDGCM/libf/dyn${dimc}d${FLAG_PARA}/${code}.F ]]
     548then
     549  source_code=${code}.F
     550  code_dir=dyn${dimc}d${FLAG_PARA}
     551else
     552  if [[ -r $LMDGCM/libf/dyn${dimc}d${FLAG_PARA}/${code}.F90 ]]
     553  then
     554    source_code=${code}.F90
     555    code_dir=dyn${dimc}d${FLAG_PARA}
     556  else
     557    if [[ -r $LMDGCM/libf/phy${physique}/${code}.F ]]
     558    then
     559      source_code=${code}.F
     560      code_dir=phy${physique}
     561    else
     562      # last possibility:
     563      if [[ -r $LMDGCM/libf/phy${physique}/${code}.F ]]
     564      then
     565        source_code=${code}.F90
     566        code_dir=phy${physique}
     567      else
     568        echo "Error: cannot find ${code}.F[90]"
     569        echo " neither in dyn${dimc}d${FLAG_PARA} nor in phy${physique}"
     570        exit
     571      fi
     572    fi
     573  fi
    550574fi
    551575
     
    625649MOD_SUFFIX="mod" \
    626650AR=$arcommand \
     651DIRMAIN=$code_dir \
    627652SOURCE=$source_code \
    628653PROG=$code
     
    654679MOD_SUFFIX="mod" \
    655680AR=$arcommand \
     681DIRMAIN=$code_dir \
    656682SOURCE=$source_code \
    657683PROG=$code
  • trunk/LMDZ.TITAN/libf/phytitan/physiq.F

    r815 r849  
    5656c======================================================================
    5757      USE ioipsl
    58       USE histcom
     58!      USE histcom ! not needed; histcom is included in ioipsl
    5959      USE infotrac
    6060      USE control_mod
     
    279279      REAL zday
    280280      REAL zls,zlsdeg
     281      REAL zlsm1 ! for write_hist* (NB: it is not properly initialized!!)
    281282c
    282283      INTEGER i, k, iq, ig, j, ll, l
  • trunk/LMDZ.VENUS/libf/phyvenus/physiq.F

    r815 r849  
    5555c======================================================================
    5656      USE ioipsl
    57       USE histcom
     57!      USE histcom ! not needed; histcom is included in ioipsl
    5858      USE infotrac
    5959      USE control_mod
  • trunk/LMDZ.VENUS/libf/phyvenus/testphys1d.F

    r97 r849  
    11
    22      PROGRAM testphys1d
     3     
     4      use control_mod
    35      IMPLICIT NONE
    46
     
    2729#include "dimsoil.h"
    2830#include "comcstfi.h"
    29 #include "control.h"
     31!#include "control.h"
    3032#include "comvert.h"
    3133#include "netcdf.inc"
     
    226228c    Vertical Coordinates  (hybrids)
    227229c    """"""""""""""""""""
    228       CALL  disvert
     230      CALL  disvert_noterre
    229231     
    230232c     Calcul au milieu des couches : Vient de la version Mars
     
    474476c***********************************************************************
    475477
    476 #include "../dyn3d/disvert.F"
     478#include "../dyn3d/disvert_noterre.F"
    477479#include "../dyn3d/abort_gcm.F"
    478480#include "../dyn3d/dump2d.F"
Note: See TracChangeset for help on using the changeset viewer.