source: trunk/LMDZ.GENERIC/utilities/postkspectrum @ 253

Last change on this file since 253 was 253, checked in by emillour, 13 years ago

Generic GCM

  • Massive update to version 0.7

EM+RW

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/bash
2
3DWORK_DIR=/san/home/rdword/corrk_data/therm_test2
4KSPEC_DIR=/san/home/rdword/kspectrum/kspec_1
5BANDS_DIR=32x36
6
7### if hires_spectrum don't exist then create it, copy data from kspectrum
8DIRCHECK=hires_spectrum
9cd $DWORK_DIR/
10if [ -d $DIRCHECK ]; then
11    echo -en "Directory hires_spectrum already exists.\n"
12else
13    echo -en "Copying kspectrum data to its new home...\n"
14    cd $DWORK_DIR
15    mkdir hires_spectrum
16
17    mv $KSPEC_DIR/results/k* hires_spectrum/
18    cp $KSPEC_DIR/results/calculation_info.txt hires_spectrum/
19    cp $KSPEC_DIR/*in hires_spectrum/
20    cp $KSPEC_DIR/data/composition.in hires_spectrum/
21
22    # removing contents of 'optimizations' folder
23    rm -rf $KSPEC_DIR/optimizations
24    mkdir $KSPEC_DIR/optimizations
25
26    chmod 444 hires_spectrum/*
27fi
28
29cp ~/utilities/run_kmatrix .
30
31echo -en "\nNow you must submit the parallel job (>> llsubmit run_kmatrix)\n"
32
33exit 0
34
35#cp ~/utilities/generate_kmatrix.exe .
36### make kmatrix in the infrared and save it in a GCM-friendly format
37#cp $BANDS_DIR/narrowbands_IR.in narrowbands.in
38#generate_kmatrix.exe
39#mv corrk_gcm.dat $BANDS_DIR/corrk_gcm_IR.dat
40#rm narrowbands.in
41### make kmatrix in the visible and save it in a GCM-friendly format
42#cp $BANDS_DIR/narrowbands_VI.in narrowbands.in
43#generate_kmatrix.exe
44#mv corrk_gcm.dat $BANDS_DIR/corrk_gcm_VI.dat
45#rm narrowbands.in
46#rm generate_kmatrix.exe
47#exit 0
Note: See TracBrowser for help on using the repository browser.