source: trunk/LMDZ.PLUTO/libf/phypluto/bands/makbands @ 3438

Last change on this file since 3438 was 3184, checked in by afalco, 10 months ago

Pluto PCM:
Added LMDZ.PLUTO, a copy of the generic model,
cleaned from some unnecessary modules (water, ...)
AF

  • 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.