Last change
on this file since 1243 was
264,
checked in by aslmd, 13 years ago
|
LMDZ.GENERIC: (with R. Wordsworth) added a sample example in utilities named corrk_test. changes scripts in utilities so that links are more generic (provided environment variables are set)
|
-
Property svn:executable set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | DWORK_DIR=$RAD/CORRELATEDK/avec_robin_data |
---|
4 | KSPEC_DIR=$KSPECTRUM/kspec_run |
---|
5 | #BANDS_DIR=32x36 |
---|
6 | BANDS_DIR=38x36 |
---|
7 | |
---|
8 | ### if hires_spectrum don't exist then create it, copy data from kspectrum |
---|
9 | DIRCHECK=hires_spectrum |
---|
10 | cd $DWORK_DIR/ |
---|
11 | if [ -d $DIRCHECK ]; then |
---|
12 | echo -en "Directory hires_spectrum already exists.\n" |
---|
13 | else |
---|
14 | echo -en "Copying kspectrum data to its new home...\n" |
---|
15 | cd $DWORK_DIR |
---|
16 | mkdir hires_spectrum |
---|
17 | |
---|
18 | mv $KSPEC_DIR/results/k* hires_spectrum/ |
---|
19 | cp $KSPEC_DIR/results/calculation_info.txt hires_spectrum/ |
---|
20 | cp $KSPEC_DIR/*in hires_spectrum/ |
---|
21 | cp $KSPEC_DIR/data/composition.in hires_spectrum/ |
---|
22 | |
---|
23 | # removing contents of 'optimizations' folder |
---|
24 | rm -rf $KSPEC_DIR/optimizations |
---|
25 | mkdir $KSPEC_DIR/optimizations |
---|
26 | |
---|
27 | chmod 444 hires_spectrum/* |
---|
28 | fi |
---|
29 | |
---|
30 | cp ~/utilities/run_kmatrix . |
---|
31 | |
---|
32 | echo -en "\nNow you must submit the parallel job (>> llsubmit run_kmatrix)\n" |
---|
33 | |
---|
34 | exit 0 |
---|
35 | |
---|
36 | #cp ~/utilities/generate_kmatrix.exe . |
---|
37 | ### make kmatrix in the infrared and save it in a GCM-friendly format |
---|
38 | #cp $BANDS_DIR/narrowbands_IR.in narrowbands.in |
---|
39 | #generate_kmatrix.exe |
---|
40 | #mv corrk_gcm.dat $BANDS_DIR/corrk_gcm_IR.dat |
---|
41 | #rm narrowbands.in |
---|
42 | ### make kmatrix in the visible and save it in a GCM-friendly format |
---|
43 | #cp $BANDS_DIR/narrowbands_VI.in narrowbands.in |
---|
44 | #generate_kmatrix.exe |
---|
45 | #mv corrk_gcm.dat $BANDS_DIR/corrk_gcm_VI.dat |
---|
46 | #rm narrowbands.in |
---|
47 | #rm generate_kmatrix.exe |
---|
48 | #exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.