source: trunk/LMDZ.TITAN/libf/grid/dimension/makdim @ 1794

Last change on this file since 1794 was 1216, checked in by emillour, 11 years ago

Generic model:
Major cleanup, in order to ease the use of LMDZ.GENERIC with (parallel) dynamics
in LMDZ.COMMON: (NB: this will break LMDZ.UNIVERSAL, which should be thrashed
in the near future)

  • Updated makegcm_* scripts (and makdim) and added the "-full" (to enforce full recomputation of the model) option
  • In dyn3d: converted control.h to module control_mod.F90 and converted iniadvtrac.F to module infotrac.F90
  • Added module mod_const_mpi.F90 in dyn3d (not used in serial mode)
  • 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 parallelism)
  • added created generic routines 'planetwide_maxval' and 'planetwide_minval', in module "planetwide_mod", that enable obtaining the max and min of a field over the whole planet. This should be further imroved with computation of means (possibly area weighed), etc.

EM

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/bash
2
3#nqmx=$1
4#shift
5for i in $* ; do
6   list=$list.$i
7done
8fichdim=dimensions${list}
9#fichdim=dimensions${list}.t${nqmx}
10
11echo $fichdim
12
13if [ ! -f $fichdim ] ; then
14# si le fichier de dimensions n'existe pas, on le cree
15
16 if [ $# -ge 3 ] ; then
17   im=$1
18   jm=$2
19   lm=$3
20#   n2=$1
21   ndm=1
22
23#  while [ "$n2" -gt 2 ]; do
24#      n2=`expr $n2 / 2`
25#     ndm=`expr $ndm + 1`
26#   done
27#   if [ "$n2" != 2 ] ; then
28#      echo le nombre de longitude doit etre une puissance de 2
29#      exit
30#   fi
31
32 else if [ $# -ge 2 ] ; then
33      im=1
34       jm=$1
35      lm=$2
36      ndm=1
37 else if [ $# -ge 1 ] ; then
38         im=1
39         jm=1
40         lm=$1
41         ndm=1
42 else
43         echo "you need at least one dimension!"
44         exit
45 fi
46fi
47fi
48
49cat << EOF > $fichdim
50!-----------------------------------------------------------------------
51!   INCLUDE 'dimensions.h'
52!
53!   dimensions.h contains the model dimensions
54!   
55!-----------------------------------------------------------------------
56
57      INTEGER, parameter :: iim=$im
58      INTEGER, parameter :: jjm=$jm
59      INTEGER, parameter :: llm=$lm
60      INTEGER, parameter :: ndm=$ndm
61
62!-----------------------------------------------------------------------
63EOF
64
65else
66 echo "dimensions file already exists!"
67fi
68
69\rm ../dimensions.h
70tar cf - $fichdim | ( cd .. ; tar xf - ; mv $fichdim dimensions.h )
Note: See TracBrowser for help on using the repository browser.