source: trunk/LMDZ.GENERIC/libf/phystd/bands/makbands @ 2176

Last change on this file since 2176 was 955, checked in by emillour, 12 years ago

Generic GCM:

  • moved the 'makbands' script from "grid" to (more appropriate) "phystd/bands" subdirectory, and consequently adapted the makegcm_* scripts

EM

  • Property svn:executable set to *
File size: 923 bytes
Line 
1#!/bin/bash
2
3for i in $* ; do
4   list=$list.$i
5done
6fichdim=bands${list}
7
8if [ ! -f $fichdim ] ; then
9# if the file doesn't exist, we create it
10
11 if [ $# -ge 2 ] ; then
12      NBinfrared=$1
13      NBvisible=$2
14 else
15      echo "you need bands in IR and in the visible"
16      exit
17 fi
18
19cat << EOF > $fichdim
20!-----------------------------------------------------------------------
21!   INCLUDE 'bands.h'
22!
23!   bands.h contains the visible & infrared bands in the model
24!
25!   NBinfrared = L_NSPECTI in the model
26!   NBvisible  = L_NSPECTV in the model
27!-----------------------------------------------------------------------
28
29      INTEGER, parameter :: NBinfrared=$NBinfrared
30      INTEGER, parameter :: NBvisible=$NBvisible
31
32
33!-----------------------------------------------------------------------
34EOF
35
36else
37 echo "bands file already exists!"
38fi
39
40\rm ../bands.h
41tar cf - $fichdim | ( cd .. ; tar xf - ; mv $fichdim bands.h )
Note: See TracBrowser for help on using the repository browser.