Skip to content

Commit

Permalink
now download the large files from another git repository
Browse files Browse the repository at this point in the history
  • Loading branch information
iurnus committed Jan 14, 2020
1 parent 0323677 commit 63122cc
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 29 deletions.
1 change: 1 addition & 0 deletions coupler/L3.C2.coupled_CA2018_ring/runCase.init/Allclean
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ rm -rf data.*
rm -rf eedata *_data run-off* CAM* bathy*
rm -rf update*.m
rm -rf namelist.input
rm -rf large_files
14 changes: 9 additions & 5 deletions coupler/L3.C2.coupled_CA2018_ring/runCase.init/Allrun
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/bin/bash

WRF_DIR=${SKRIPS_DIR}/WRFV412_AO/
export CPL_FOLDER='/project/rus043_data/ar_2018_forecast/'
ln -s ${CPL_FOLDER}/save_nc/fine_loop_3911/2018_0127/met_em.d01.2018-01-2[6-9]*.nc .
ln -s ${CPL_FOLDER}/save_nc/fine_loop_3911/2018_0127/met_em.d01.2018-01-3[0-9]*.nc .
ln -s ${CPL_FOLDER}/save_nc/fine_loop_3911/2018_0127/met_em.d01.2018-02-0[1-2]*.nc .
# cp ../save_nc/*.nc .

# export CPL_FOLDER='/project/rus043_data/ar_2018_forecast/'
# ln -s ${CPL_FOLDER}/save_nc/fine_loop_3911/2018_0127/met_em.d01.2018-01-2[6-9]*.nc .
# ln -s ${CPL_FOLDER}/save_nc/fine_loop_3911/2018_0127/met_em.d01.2018-01-3[0-9]*.nc .
# ln -s ${CPL_FOLDER}/save_nc/fine_loop_3911/2018_0127/met_em.d01.2018-02-0[1-2]*.nc .

git clone https://github.com/iurnus/scripps_kaust_large_files.git large_files
unzip 'large_files/L3C2_case/*.zip'

cp ../caseInput/* .
cp ${WRF_DIR}/main/real.exe .
cp ${WRF_DIR}/main/wrf.exe .
Expand Down
6 changes: 3 additions & 3 deletions coupler/L3.C2.coupled_CA2018_shaheen/coupledCode/Allmake.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh

WRF_DIR=/home/x_sunr/scripps_kaust_model_github/WRFV412_AO_01/
ESMF_DIR=/home/x_sunr/scripps_kaust_model_github/esmf/
COUPLER_DIR=/home/x_sunr/scripps_kaust_model_github/coupler/
WRF_DIR=$SKRIPS_DIR/WRFV412_AO/
ESMF_DIR=$SKRIPS_DIR/esmf/
COUPLER_DIR=$SKRIPS_DIR/coupler/

export ESMFMKFILE=$ESMF_DIR/lib/libg/Unicos.intel.64.mpi.default/esmf.mk

Expand Down
4 changes: 2 additions & 2 deletions coupler/L3.C2.coupled_CA2018_shaheen/coupledCode/wrflib.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
WRF_DIR=/home/x_sunr/scripps_kaust_model_github/WRFV412_AO_01/
ESMF_DIR=/home/x_sunr/scripps_kaust_model_github/esmf/
WRF_DIR=${SKRIPS_DIR}/WRFV412_AO/
ESMF_DIR=${SKRIPS_DIR}/esmf/

WRF_INC = \
-I${WRF_DIR}dyn_em \
Expand Down
28 changes: 14 additions & 14 deletions coupler/L3.C2.coupled_CA2018_shaheen/install.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#!/bin/sh
export MPI_HOME=/opt/cray/pe/mpt/7.7.0/gni/mpich-intel/16.0/include/
export MITGCM_DIR=${SKRIPS_DIR}/MITgcm_c67m


read -e -p "WRF412 (with OA coupling) location? :" -i "$HOME/scripps_kaust_model_github/WRFV412_AO_01/" wrfLocation
read -e -p "ESMF location? :" -i "$HOME/scripps_kaust_model_github/esmf/" esmfLocation
read -e -p "MITgcm location? :" -i "$HOME/scripps_kaust_model_github/MITgcm_c67m/" MITGCM_DIR
read -e -p "COUPLER location? :" -i "$HOME/scripps_kaust_model_github/coupler/" couplerLocation
sed -i "1s@.*@WRF_DIR=$wrfLocation@" coupledCode/wrflib.mk
sed -i "2s@.*@ESMF_DIR=$esmfLocation@" coupledCode/wrflib.mk
sed -i "3s@.*@WRF_DIR=$wrfLocation@" coupledCode/Allmake.sh
sed -i "4s@.*@ESMF_DIR=$esmfLocation@" coupledCode/Allmake.sh
sed -i "5s@.*@COUPLER_DIR=$couplerLocation@" coupledCode/Allmake.sh
sed -i "3s@.*@WRF_DIR=$wrfLocation@" runCase.init/Allrun
sed -i "3s@.*@WRF_DIR=$wrfLocation@" runCase/Allrun
sed -i "3s@.*@WRF_DIR=$wrfLocation@" runWRFtest/Allrun
read -e -p "WRF412 (with OA coupling) location? :" -i "$SKRIPS_DIR/WRFV412_AO/" wrfLocation
read -e -p "ESMF location? :" -i "$SKRIPS_DIR/esmf/" esmfLocation
read -e -p "MITgcm location? :" -i "$SKRIPS_DIR/MITgcm_c67m/" MITGCM_DIR
read -e -p "COUPLER location? :" -i "$SKRIPS_DIR/coupler/" couplerLocation
# sed -i "1s@.*@WRF_DIR=$wrfLocation@" coupledCode/wrflib.mk
# sed -i "2s@.*@ESMF_DIR=$esmfLocation@" coupledCode/wrflib.mk
# sed -i "3s@.*@WRF_DIR=$wrfLocation@" coupledCode/Allmake.sh
# sed -i "4s@.*@ESMF_DIR=$esmfLocation@" coupledCode/Allmake.sh
# sed -i "5s@.*@COUPLER_DIR=$couplerLocation@" coupledCode/Allmake.sh
# sed -i "3s@.*@WRF_DIR=$wrfLocation@" runCase.init/Allrun
# sed -i "3s@.*@WRF_DIR=$wrfLocation@" runCase/Allrun
# sed -i "3s@.*@WRF_DIR=$wrfLocation@" runWRFtest/Allrun

# build the MITGCM as an executable
mkdir build_mit code_mit
Expand All @@ -36,7 +36,7 @@ cp mitSettingCA/* code/ # copy the scripts to install MITGCM
cd build
./makescript_fwd.sio.shaheen ${MITGCM_DIR} # install MITGCM, generate *.f files

cp $MPI_HOME/mpif* .
cp ${SKRIPS_MPI_DIR}/include/mpif* .
./mkmod.sh ocn # install MITGCM as a library, generate *.mod files
cd ..

Expand Down
1 change: 1 addition & 0 deletions coupler/L3.C2.coupled_CA2018_shaheen/runCase.init/Allclean
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ rm -rf eedata *_data run-off* CAM* bathy*
rm -rf update*.m
rm -rf *.py
rm -rf job*
rm -rf large_files
7 changes: 4 additions & 3 deletions coupler/L3.C2.coupled_CA2018_shaheen/runCase.init/Allrun
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash

WRF_DIR=/home/x_sunr/scripps_kaust_model_github/WRFV412_AO_01/
export CPL_FOLDER='/project/k1325/ar_project_wrf_nc/test_nc'
WRF_DIR=${SKRIPS_DIR}/WRFV412_AO/

git clone https://github.com/iurnus/scripps_kaust_large_files.git large_files
unzip 'large_files/L3C2_case/*.zip'

ln -s ${CPL_FOLDER}/met_em.d01.2018-01-2[6-9]*.nc .
ln -sf ../caseInput/* .
cp ${WRF_DIR}/main/real.exe .
cp ${WRF_DIR}/main/wrf.exe .
Expand Down
2 changes: 1 addition & 1 deletion coupler/L3.C2.coupled_CA2018_shaheen/runCase/Allrun
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

WRF_DIR=/home/x_sunr/scripps_kaust_model_github/WRFV412_AO_01/
WRF_DIR=${SKRIPS_DIR}/WRFV412_AO/

cp ${WRF_DIR}/main/wrf.exe .
cp ../coupledCode/esmf_application .
Expand Down
2 changes: 1 addition & 1 deletion coupler/L3.C2.coupled_CA2018_shaheen/runWRFtest/Allrun
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

WRF_DIR=/home/x_sunr/scripps_kaust_model_github/WRFV412_AO_01/
WRF_DIR=${SKRIPS_DIR}/WRFV412_AO/

cp ${WRF_DIR}/main/wrf.exe .
cp ../runCase/*.TBL .
Expand Down

0 comments on commit 63122cc

Please sign in to comment.