From 46c15bb4cfff2c2243d75cc29dd08ec65b22958a Mon Sep 17 00:00:00 2001 From: Dimitri Komatitsch Date: Mon, 22 Oct 2012 16:06:16 +0000 Subject: [PATCH] replaced in_data_files with DATA in all files and scripts --- Makefile.in | 2 +- .../HOWTO_run_this_example.txt | 2 +- src/generate_databases/model_tomography.f90 | 2 +- src/shared/constants.h.in | 4 ++-- src/shared/read_value_parameters.f90 | 2 +- utils/Cluster/go_generate_databases | 4 ++-- utils/Cluster/go_solver | 4 ++-- utils/Cluster/lsf/go_generate_databases_lsf.bash | 4 ++-- .../Cluster/lsf/go_mesher_solver_lsf_basin.forward | 10 +++++----- .../Cluster/lsf/go_mesher_solver_lsf_basin.kernel | 10 +++++----- utils/Cluster/lsf/go_solver_lsf.bash | 8 ++++---- utils/Cluster/lsf/run_lsf.bash | 6 +++--- utils/Cluster/pbs/go_decomposer_pbs.bash | 2 +- utils/Cluster/pbs/go_generate_databases_pbs.bash | 4 ++-- utils/Cluster/pbs/go_mesher_pbs.bash | 6 +++--- utils/Cluster/pbs/go_solver_pbs.bash | 8 ++++---- utils/Cluster/pbs/valgrind_go_solver_pbs.bash | 12 ++++++------ utils/Cluster/run3d.csh | 6 +++--- utils/Cluster/sge/go_generate_databases_sge.bash | 8 ++++---- utils/Cluster/sge/go_solver_sge.bash | 8 ++++---- utils/Visualization/GMT/movie2gif.gmt.pl | 12 ++++++------ utils/Visualization/GMT/plot_shakemap.gmt.pl | 2 +- utils/change_simulation_type.pl | 8 ++++---- utils/cmt_frechet/cmt_frechet.csh | 14 +++++++------- utils/cmt_frechet/cmt_frechet1.csh | 8 ++++---- utils/cmt_frechet/go_solver_cmt | 8 ++++---- utils/unused_routines/create_header_file.f90 | 2 +- 27 files changed, 83 insertions(+), 83 deletions(-) diff --git a/Makefile.in b/Makefile.in index 0532f6ac9..3358402f9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -84,7 +84,7 @@ all: default \ required: bin lib obj backup: - cp -rp src in_data_files Makefile go_generate_databases* go_mesher* go_solver* mymachines bak + cp -rp src DATA Makefile go_generate_databases* go_mesher* go_solver* mymachines bak bak: backup diff --git a/examples/homogeneous_halfspace_HEX27/HOWTO_run_this_example.txt b/examples/homogeneous_halfspace_HEX27/HOWTO_run_this_example.txt index 6466d1ace..3504ac61f 100644 --- a/examples/homogeneous_halfspace_HEX27/HOWTO_run_this_example.txt +++ b/examples/homogeneous_halfspace_HEX27/HOWTO_run_this_example.txt @@ -2,7 +2,7 @@ To run this example on two processor cores for instance, type this (replace "2" with another value in the three lines below if you want to use more processor cores): -./bin/xdecompose_mesh_SCOTCH 2 in_data_files/MESH in_out_files/DATABASES_MPI +./bin/xdecompose_mesh_SCOTCH 2 DATA/MESH in_out_files/DATABASES_MPI mpirun -np 2 ./bin/xgenerate_databases diff --git a/src/generate_databases/model_tomography.f90 b/src/generate_databases/model_tomography.f90 index 895785210..af3edd6f6 100644 --- a/src/generate_databases/model_tomography.f90 +++ b/src/generate_databases/model_tomography.f90 @@ -39,7 +39,7 @@ module tomography_par include "constants.h" ! for external tomography: - ! file must be in ../in_data_files/ directory + ! file must be in ../DATA/ directory ! (regular spaced, xyz-block file in ascii) character (len=80) :: TOMO_FILENAME = 'tomography_model.xyz' diff --git a/src/shared/constants.h.in b/src/shared/constants.h.in index f67089ca2..88844d95d 100644 --- a/src/shared/constants.h.in +++ b/src/shared/constants.h.in @@ -162,8 +162,8 @@ !!----------------------------------------------------------- ! paths for inputs and outputs files - character(len=256), parameter :: IN_DATA_FILES_PATH = '../in_data_files/' - character(len=256), parameter :: MF_IN_DATA_FILES_PATH = '../in_data_files/meshfem3D_files/' + character(len=256), parameter :: IN_DATA_FILES_PATH = '../DATA/' + character(len=256), parameter :: MF_IN_DATA_FILES_PATH = '../DATA/meshfem3D_files/' character(len=256), parameter :: OUTPUT_FILES_PATH = '../in_out_files/OUTPUT_FILES/' diff --git a/src/shared/read_value_parameters.f90 b/src/shared/read_value_parameters.f90 index b6e1a17ac..afcdd0744 100644 --- a/src/shared/read_value_parameters.f90 +++ b/src/shared/read_value_parameters.f90 @@ -255,7 +255,7 @@ end function err_occurred ! ! include "constants.h" ! -! open(unit=IIN,file='in_data_files/Par_file',status='old',action='read') +! open(unit=IIN,file='DATA/Par_file',status='old',action='read') ! ! end subroutine open_parameter_file ! diff --git a/utils/Cluster/go_generate_databases b/utils/Cluster/go_generate_databases index 27af5e13b..1d49ef73b 100755 --- a/utils/Cluster/go_generate_databases +++ b/utils/Cluster/go_generate_databases @@ -7,10 +7,10 @@ # name of the file that contains the list of machines set machine_file = "mymachines" -set my_local_path = `grep LOCAL_PATH in_data_files/Par_file | cut -d '=' -f 2 ` +set my_local_path = `grep LOCAL_PATH DATA/Par_file | cut -d '=' -f 2 ` # compute total number of processors needed -set NPROC = `grep NPROC in_data_files/Par_file | cut -d '=' -f 2 ` +set NPROC = `grep NPROC DATA/Par_file | cut -d '=' -f 2 ` # total number of processors is the product of the values read @ numprocessors = $NPROC diff --git a/utils/Cluster/go_solver b/utils/Cluster/go_solver index 70109fd7d..690cfc1c5 100755 --- a/utils/Cluster/go_solver +++ b/utils/Cluster/go_solver @@ -7,10 +7,10 @@ # name of the file that contains the list of machines set machine_file = "mymachines" -set my_local_path = `grep LOCAL_PATH in_data_files/Par_file | cut -d '=' -f 2 ` +set my_local_path = `grep LOCAL_PATH DATA/Par_file | cut -d '=' -f 2 ` # compute total number of processors needed -set NPROC = `grep NPROC in_data_files/Par_file | cut -d '=' -f 2 ` +set NPROC = `grep NPROC DATA/Par_file | cut -d '=' -f 2 ` # total number of processors is the product of the values read @ numprocessors = $NPROC diff --git a/utils/Cluster/lsf/go_generate_databases_lsf.bash b/utils/Cluster/lsf/go_generate_databases_lsf.bash index 4805e09dc..c48d347c9 100755 --- a/utils/Cluster/lsf/go_generate_databases_lsf.bash +++ b/utils/Cluster/lsf/go_generate_databases_lsf.bash @@ -25,12 +25,12 @@ fi # script to run the mesher and the solver # read Par_file to get information about the run # compute total number of nodes needed -NPROC=`grep NPROC in_data_files/Par_file | cut -d = -f 2 ` +NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 ` # total number of nodes is the product of the values read numnodes=$NPROC -cp in_data_files/Par_file in_out_files/OUTPUT_FILES/ +cp DATA/Par_file in_out_files/OUTPUT_FILES/ # obtain lsf job information cat $LSB_DJOB_HOSTFILE > in_out_files/OUTPUT_FILES/compute_nodes diff --git a/utils/Cluster/lsf/go_mesher_solver_lsf_basin.forward b/utils/Cluster/lsf/go_mesher_solver_lsf_basin.forward index a3555cad6..a37e9ad54 100755 --- a/utils/Cluster/lsf/go_mesher_solver_lsf_basin.forward +++ b/utils/Cluster/lsf/go_mesher_solver_lsf_basin.forward @@ -17,12 +17,12 @@ remap_lsf_machines.pl in_out_files/OUTPUT_FILES/lsf_machines > in_out_files/OUTP shmux -M50 -Sall -c "mkdir -p /scratch/$USER/; mkdir -p $BASEMPIDIR.$LSB_JOBID" - < in_out_files/OUTPUT_FILES/machines >/dev/null # main parameter file -sed -e "s:^LOCAL_PATH .*:LOCAL_PATH = $BASEMPIDIR.$LSB_JOBID:" < in_data_files/Par_file > Par_file.tmp -mv Par_file.tmp in_data_files/Par_file +sed -e "s:^LOCAL_PATH .*:LOCAL_PATH = $BASEMPIDIR.$LSB_JOBID:" < DATA/Par_file > Par_file.tmp +mv Par_file.tmp DATA/Par_file # mesher parameter file -sed -e "s:^LOCAL_PATH .*:LOCAL_PATH = $BASEMPIDIR.$LSB_JOBID:" < in_data_files/meshfem3D_files/Mesh_Par_file > Par_file.tmp -mv Par_file.tmp in_data_files/meshfem3D_files/Mesh_Par_file +sed -e "s:^LOCAL_PATH .*:LOCAL_PATH = $BASEMPIDIR.$LSB_JOBID:" < DATA/meshfem3D_files/Mesh_Par_file > Par_file.tmp +mv Par_file.tmp DATA/meshfem3D_files/Mesh_Par_file # run the specfem program current_pwd=$PWD @@ -36,5 +36,5 @@ mpirun.lsf --gm-no-shmem --gm-copy-env ./xspecfem3D cd current_pwd/ mkdir -p in_out_files/SEM cd in_out_files/SEM/ -collect_seismo_lsf_multi.pl ../OUTPUT_FILES/lsf_machines $current_pwd/in_data_files/Par_file +collect_seismo_lsf_multi.pl ../OUTPUT_FILES/lsf_machines $current_pwd/DATA/Par_file cleanbase.pl ../OUTPUT_FILES/machines diff --git a/utils/Cluster/lsf/go_mesher_solver_lsf_basin.kernel b/utils/Cluster/lsf/go_mesher_solver_lsf_basin.kernel index 0710a5cc3..4800c8ff9 100755 --- a/utils/Cluster/lsf/go_mesher_solver_lsf_basin.kernel +++ b/utils/Cluster/lsf/go_mesher_solver_lsf_basin.kernel @@ -16,12 +16,12 @@ remap_lsf_machines.pl in_out_files/OUTPUT_FILES/lsf_machines > in_out_files/OUTP shmux -M50 -Sall -c "mkdir -p /scratch/$USER/; mkdir -p $BASEMPIDIR.$LSB_JOBID" - < in_out_files/OUTPUT_FILES/machines >/dev/null # main parameter file -sed -e "s:^LOCAL_PATH .*:LOCAL_PATH = $BASEMPIDIR.$LSB_JOBID:" < in_data_files/Par_file > Par_file.tmp -mv Par_file.tmp in_data_files/Par_file +sed -e "s:^LOCAL_PATH .*:LOCAL_PATH = $BASEMPIDIR.$LSB_JOBID:" < DATA/Par_file > Par_file.tmp +mv Par_file.tmp DATA/Par_file # mesher parameter file -sed -e "s:^LOCAL_PATH .*:LOCAL_PATH = $BASEMPIDIR.$LSB_JOBID:" < in_data_files/meshfem3D_files/Mesh_Par_file > Par_file.tmp -mv Par_file.tmp in_data_files/meshfem3D_files/Mesh_Par_file +sed -e "s:^LOCAL_PATH .*:LOCAL_PATH = $BASEMPIDIR.$LSB_JOBID:" < DATA/meshfem3D_files/Mesh_Par_file > Par_file.tmp +mv Par_file.tmp DATA/meshfem3D_files/Mesh_Par_file current_pwd=$PWD @@ -35,7 +35,7 @@ mpirun.lsf --gm-no-shmem --gm-copy-env ./xspecfem3D #### this is the part needs to be revised for each kernel simulation ##### mkdir -p $current_pwd/in_out_files/SEM cd $current_pwd/in_out_files/SEM -collect_seismo_lsf_multi.pl $current_pwd/in_out_files/OUTPUT_FILES/lsf_machines $current_pwd/in_data_files/Par_file +collect_seismo_lsf_multi.pl $current_pwd/in_out_files/OUTPUT_FILES/lsf_machines $current_pwd/DATA/Par_file #xcut_velocity 29.0 32.5 3 GSC*.semd xcreate_adjsrc_traveltime 29.0 32.5 3 GSC*.semd rename .semd.adj .adj *.semd.ad diff --git a/utils/Cluster/lsf/go_solver_lsf.bash b/utils/Cluster/lsf/go_solver_lsf.bash index 3d0ab3407..bafa6608f 100755 --- a/utils/Cluster/lsf/go_solver_lsf.bash +++ b/utils/Cluster/lsf/go_solver_lsf.bash @@ -25,16 +25,16 @@ fi # script to run the mesher and the solver # read Par_file to get information about the run # compute total number of nodes needed -NPROC=`grep NPROC in_data_files/Par_file | cut -d = -f 2 ` +NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 ` # total number of nodes is the product of the values read numnodes=$NPROC rm -r -f in_out_files/OUTPUT_FILES mkdir in_out_files/OUTPUT_FILES -cp in_data_files/Par_file in_out_files/OUTPUT_FILES/ -cp in_data_files/CMTSOLUTION in_out_files/OUTPUT_FILES/ -cp in_data_files/STATIONS in_out_files/OUTPUT_FILES/ +cp DATA/Par_file in_out_files/OUTPUT_FILES/ +cp DATA/CMTSOLUTION in_out_files/OUTPUT_FILES/ +cp DATA/STATIONS in_out_files/OUTPUT_FILES/ # obtain lsf job information cat $BSUB_DJOB_NODEFILE > in_out_files/OUTPUT_FILES/compute_nodes diff --git a/utils/Cluster/lsf/run_lsf.bash b/utils/Cluster/lsf/run_lsf.bash index 9ed6e300f..fcf061fd3 100755 --- a/utils/Cluster/lsf/run_lsf.bash +++ b/utils/Cluster/lsf/run_lsf.bash @@ -25,11 +25,11 @@ d=`date` echo "Finished compilation $d" # get total number of nodes needed for solver -NPROC=`grep NPROC in_data_files/Par_file | cut -d = -f 2 ` +NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 ` # compute total number of nodes needed for mesher -NPROC_XI=`grep NPROC_XI in_data_files/meshfem3D_files/Mesh_Par_file | cut -d = -f 2 ` -NPROC_ETA=`grep NPROC_ETA in_data_files/meshfem3D_files/Mesh_Par_file | cut -d = -f 2 ` +NPROC_XI=`grep NPROC_XI DATA/meshfem3D_files/Mesh_Par_file | cut -d = -f 2 ` +NPROC_ETA=`grep NPROC_ETA DATA/meshfem3D_files/Mesh_Par_file | cut -d = -f 2 ` # total number of nodes is the product of the values read numnodes=$(( $NPROC_XI * $NPROC_ETA )) diff --git a/utils/Cluster/pbs/go_decomposer_pbs.bash b/utils/Cluster/pbs/go_decomposer_pbs.bash index c307e0e45..136452a0d 100755 --- a/utils/Cluster/pbs/go_decomposer_pbs.bash +++ b/utils/Cluster/pbs/go_decomposer_pbs.bash @@ -20,7 +20,7 @@ cd $PBS_O_WORKDIR # script to run the mesher and the solver # read Par_file to get information about the run # compute total number of nodes needed -NPROC=`grep NPROC in_data_files/Par_file | cut -d = -f 2 ` +NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 ` # total number of nodes is the product of the values read numnodes=$NPROC diff --git a/utils/Cluster/pbs/go_generate_databases_pbs.bash b/utils/Cluster/pbs/go_generate_databases_pbs.bash index 5d9a22d20..e1c4565cb 100755 --- a/utils/Cluster/pbs/go_generate_databases_pbs.bash +++ b/utils/Cluster/pbs/go_generate_databases_pbs.bash @@ -20,7 +20,7 @@ cd $PBS_O_WORKDIR # script to run the mesher and the solver # read Par_file to get information about the run # compute total number of nodes needed -NPROC=`grep NPROC in_data_files/Par_file | cut -d = -f 2 ` +NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 ` # total number of nodes is the product of the values read numnodes=$NPROC @@ -29,7 +29,7 @@ mkdir -p in_out_files/OUTPUT_FILES # backup files used for this simulation cp go_generate_databases_pbs.bash in_out_files/OUTPUT_FILES/ -cp in_data_files/Par_file in_out_files/OUTPUT_FILES/ +cp DATA/Par_file in_out_files/OUTPUT_FILES/ # save a complete copy of source files #rm -rf in_out_files/OUTPUT_FILES/src diff --git a/utils/Cluster/pbs/go_mesher_pbs.bash b/utils/Cluster/pbs/go_mesher_pbs.bash index 46eae3040..dd82c6f0f 100755 --- a/utils/Cluster/pbs/go_mesher_pbs.bash +++ b/utils/Cluster/pbs/go_mesher_pbs.bash @@ -18,7 +18,7 @@ cd $PBS_O_WORKDIR # number of cores for the job -NPROC=`grep NPROC in_data_files/Par_file | cut -d = -f 2 ` +NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 ` numnodes=$NPROC mkdir -p in_out_files/OUTPUT_FILES @@ -26,8 +26,8 @@ mkdir -p in_out_files/DATABASES_MPI # backup files used for this simulation cp go_mesher_pbs.bash in_out_files/OUTPUT_FILES/ -cp in_data_files/Par_file in_out_files/OUTPUT_FILES/ -cp in_data_files/meshfem3D_files/Mesh_Par_file in_out_files/OUTPUT_FILES/ +cp DATA/Par_file in_out_files/OUTPUT_FILES/ +cp DATA/meshfem3D_files/Mesh_Par_file in_out_files/OUTPUT_FILES/ # save a complete copy of source files #rm -rf in_out_files/OUTPUT_FILES/src diff --git a/utils/Cluster/pbs/go_solver_pbs.bash b/utils/Cluster/pbs/go_solver_pbs.bash index 2319c2293..944bcf554 100755 --- a/utils/Cluster/pbs/go_solver_pbs.bash +++ b/utils/Cluster/pbs/go_solver_pbs.bash @@ -20,7 +20,7 @@ cd $PBS_O_WORKDIR # script to run the mesher and the solver # read Par_file to get information about the run # compute total number of nodes needed -NPROC=`grep NPROC in_data_files/Par_file | cut -d = -f 2 ` +NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 ` # total number of nodes is the product of the values read numnodes=$NPROC @@ -29,9 +29,9 @@ mkdir -p in_out_files/OUTPUT_FILES # backup files used for this simulation cp go_solver_pbs.bash in_out_files/OUTPUT_FILES/ -cp in_data_files/Par_file in_out_files/OUTPUT_FILES/ -cp in_data_files/STATIONS in_out_files/OUTPUT_FILES/ -cp in_data_files/CMTSOLUTION in_out_files/OUTPUT_FILES/ +cp DATA/Par_file in_out_files/OUTPUT_FILES/ +cp DATA/STATIONS in_out_files/OUTPUT_FILES/ +cp DATA/CMTSOLUTION in_out_files/OUTPUT_FILES/ cp src/shared/constants.h in_out_files/OUTPUT_FILES/ # save a complete copy of source files diff --git a/utils/Cluster/pbs/valgrind_go_solver_pbs.bash b/utils/Cluster/pbs/valgrind_go_solver_pbs.bash index 3776b8e32..3b2ee3296 100755 --- a/utils/Cluster/pbs/valgrind_go_solver_pbs.bash +++ b/utils/Cluster/pbs/valgrind_go_solver_pbs.bash @@ -7,7 +7,7 @@ # bash script #PBS -S /bin/bash -# job name +# job name #PBS -N valgrind_go_solver # joins output and error information @@ -25,7 +25,7 @@ # 150 CPUs ( 18*8+6 ), walltime 15 hour #PBS -l nodes=18:ppn=8+1:ppn=6,walltime=15:00:00 -# valgrind mpi library +# valgrind mpi library PRELOAD_LIB=/my_valgrind_path/valgrind/lib/valgrind/libmpiwrap-x86-linux.so ########################################################### @@ -35,7 +35,7 @@ cd $PBS_O_WORKDIR # script to run the mesher and the solver # read Par_file to get information about the run # compute total number of nodes needed -NPROC=`grep NPROC in_data_files/Par_file | cut -d = -f 2 ` +NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 ` # total number of nodes is the product of the values read numnodes=$NPROC @@ -43,9 +43,9 @@ numnodes=$NPROC mkdir -p in_out_files/OUTPUT_FILES # backup files used for this simulation -cp in_data_files/Par_file in_out_files/OUTPUT_FILES/ -cp in_data_files/STATIONS in_out_files/OUTPUT_FILES/ -cp in_data_files/CMTSOLUTION in_out_files/OUTPUT_FILES/ +cp DATA/Par_file in_out_files/OUTPUT_FILES/ +cp DATA/STATIONS in_out_files/OUTPUT_FILES/ +cp DATA/CMTSOLUTION in_out_files/OUTPUT_FILES/ # obtain job information cat $PBS_NODEFILE > in_out_files/OUTPUT_FILES/compute_nodes diff --git a/utils/Cluster/run3d.csh b/utils/Cluster/run3d.csh index bc7695a95..2dc175535 100755 --- a/utils/Cluster/run3d.csh +++ b/utils/Cluster/run3d.csh @@ -21,7 +21,7 @@ if (! -d $OUTDIR) then mkdir $OUTDIR endif cd $OUTDIR -cp ../../in_data_files/CMTSOLUTION . -cp ../../in_data_files/STATIONS . -cp ../../in_data_files/Par_file . +cp ../../DATA/CMTSOLUTION . +cp ../../DATA/STATIONS . +cp ../../DATA/Par_file . diff --git a/utils/Cluster/sge/go_generate_databases_sge.bash b/utils/Cluster/sge/go_generate_databases_sge.bash index 16e6645ac..21c4d3013 100755 --- a/utils/Cluster/sge/go_generate_databases_sge.bash +++ b/utils/Cluster/sge/go_generate_databases_sge.bash @@ -20,7 +20,7 @@ # script to run the mesher and the solver # read Par_file to get information about the run # compute total number of nodes needed -NPROC=`grep NPROC in_data_files/Par_file | cut -d = -f 2 ` +NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 ` # total number of nodes is the product of the values read numnodes=$NPROC @@ -28,9 +28,9 @@ numnodes=$NPROC mkdir -p in_out_files/OUTPUT_FILES # backup for files used for this simulation -cp in_data_files/Par_file in_out_files/OUTPUT_FILES/ -cp in_data_files/STATIONS in_out_files/OUTPUT_FILES/ -cp in_data_files/CMTSOLUTION in_out_files/OUTPUT_FILES/ +cp DATA/Par_file in_out_files/OUTPUT_FILES/ +cp DATA/STATIONS in_out_files/OUTPUT_FILES/ +cp DATA/CMTSOLUTION in_out_files/OUTPUT_FILES/ rm -rf in_out_files/OUTPUT_FILES/src cp -rp ./src in_out_files/OUTPUT_FILES/ diff --git a/utils/Cluster/sge/go_solver_sge.bash b/utils/Cluster/sge/go_solver_sge.bash index ca6a8c2d1..d919d0564 100755 --- a/utils/Cluster/sge/go_solver_sge.bash +++ b/utils/Cluster/sge/go_solver_sge.bash @@ -20,7 +20,7 @@ # script to run the mesher and the solver # read Par_file to get information about the run # compute total number of nodes needed -NPROC=`grep NPROC in_data_files/Par_file | cut -d = -f 2 ` +NPROC=`grep NPROC DATA/Par_file | cut -d = -f 2 ` # total number of nodes is the product of the values read numnodes=$NPROC @@ -28,9 +28,9 @@ numnodes=$NPROC mkdir -p in_out_files/OUTPUT_FILES # backup for files used for this simulation -cp in_data_files/Par_file in_out_files/OUTPUT_FILES/ -cp in_data_files/STATIONS in_out_files/OUTPUT_FILES/ -cp in_data_files/CMTSOLUTION in_out_files/OUTPUT_FILES/ +cp DATA/Par_file in_out_files/OUTPUT_FILES/ +cp DATA/STATIONS in_out_files/OUTPUT_FILES/ +cp DATA/CMTSOLUTION in_out_files/OUTPUT_FILES/ rm -rf in_out_files/OUTPUT_FILES/src cp -rp ./src in_out_files/OUTPUT_FILES/ diff --git a/utils/Visualization/GMT/movie2gif.gmt.pl b/utils/Visualization/GMT/movie2gif.gmt.pl index d58c8d6e9..ecdf3ceac 100755 --- a/utils/Visualization/GMT/movie2gif.gmt.pl +++ b/utils/Visualization/GMT/movie2gif.gmt.pl @@ -89,11 +89,11 @@ sub Usage { # convert from movie data to gmt xyz files if ($tran_to_gmt) { - if (not -f "../in_data_files/Par_file") {die(" Check if ../in_data_files/Par_file exist or not\n");} - (@junk) = split(" ", `grep '^DT' ../in_data_files/Par_file`); + if (not -f "../DATA/Par_file") {die(" Check if ../DATA/Par_file exist or not\n");} + (@junk) = split(" ", `grep '^DT' ../DATA/Par_file`); $dt = $junk[2]; - (@junk) = split(" ", `grep '^NTSTEP_BETWEEN_FRAMES' ../in_data_files/Par_file`); + (@junk) = split(" ", `grep '^NTSTEP_BETWEEN_FRAMES' ../DATA/Par_file`); $nframe = $junk[2]; # start and end time @@ -107,11 +107,11 @@ sub Usage { } else { - if (not -f "../in_data_files/Par_file") {die(" Check if ../in_data_files/Par_file exist or not\n");} - (@junk) = split(" ", `grep '^DT' ../in_data_files/Par_file`); + if (not -f "../DATA/Par_file") {die(" Check if ../DATA/Par_file exist or not\n");} + (@junk) = split(" ", `grep '^DT' ../DATA/Par_file`); $dt = $junk[2]; - (@junk) = split(" ", `grep '^NTSTEP_BETWEEN_FRAMES' ../in_data_files/Par_file`); + (@junk) = split(" ", `grep '^NTSTEP_BETWEEN_FRAMES' ../DATA/Par_file`); $nframe = $junk[2]; } diff --git a/utils/Visualization/GMT/plot_shakemap.gmt.pl b/utils/Visualization/GMT/plot_shakemap.gmt.pl index 383bd645e..9b08fe92b 100755 --- a/utils/Visualization/GMT/plot_shakemap.gmt.pl +++ b/utils/Visualization/GMT/plot_shakemap.gmt.pl @@ -4,7 +4,7 @@ # # copy this script into your bin/ folder and run for example: # -# ./plot_shakemap.gmt.pl ../in_data_files/ 2 ../in_data_files/CMTSOLUTION +# ./plot_shakemap.gmt.pl ../DATA/ 2 ../DATA/CMTSOLUTION # # will create shakemap file ../in_out_files/OUTPUT_FILES/gmt_shaking_map.ps for peak ground velocity diff --git a/utils/change_simulation_type.pl b/utils/change_simulation_type.pl index 45385bf9f..aa9d6a208 100755 --- a/utils/change_simulation_type.pl +++ b/utils/change_simulation_type.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -# this script changes the simulation_type in in_data_files/Par_file +# this script changes the simulation_type in DATA/Par_file # Qinya Liu, May 2007, Caltech use Time::Local; @@ -11,7 +11,7 @@ sub Usage{ print STDERR <; close(IN); @@ -57,7 +57,7 @@ END } } -open(OUT,">in_data_files/Par_file"); +open(OUT,">DATA/Par_file"); foreach $vfm (@vfm){ print OUT "$vfm"; } diff --git a/utils/cmt_frechet/cmt_frechet.csh b/utils/cmt_frechet/cmt_frechet.csh index 89d58ab7f..0735a7a17 100755 --- a/utils/cmt_frechet/cmt_frechet.csh +++ b/utils/cmt_frechet/cmt_frechet.csh @@ -15,8 +15,8 @@ go_generate_databases # save the CMTSOLUTION and the STATIONS file mkdir -p CMT_FRECHET -cp in_data_files/CMTSOLUTION CMT_FRECHET -cp in_data_files/STATIONS CMT_FRECHET +cp DATA/CMTSOLUTION CMT_FRECHET +cp DATA/STATIONS CMT_FRECHET # calculate synthetics sleep 180 @@ -32,7 +32,7 @@ end cd .. # make the CMTSOLUTION files needed for the calculation of Frechet derivatives -cd in_data_files +cd DATA # backup the CMTSOLUTION file cp CMTSOLUTION CMTSOLUTION_BACKUP ./xmake_cmtsolution_files @@ -41,8 +41,8 @@ cd .. foreach extension (Mrr Mtt Mpp Mrt Mrp Mtp depth latitude longitude) # setup the calculation for the Frechet derivative with respect to ${extension} -rm in_data_files/CMTSOLUTION -mv in_data_files/CMTSOLUTION_${extension} in_data_files/CMTSOLUTION +rm DATA/CMTSOLUTION +mv DATA/CMTSOLUTION_${extension} DATA/CMTSOLUTION sleep 180 go_solver_cmt @@ -58,6 +58,6 @@ cd .. end # put the backup CMTSOLUTION file back -rm in_data_files/CMTSOLUTION -mv in_data_files/CMTSOLUTION_BACKUP in_data_files/CMTSOLUTION +rm DATA/CMTSOLUTION +mv DATA/CMTSOLUTION_BACKUP DATA/CMTSOLUTION diff --git a/utils/cmt_frechet/cmt_frechet1.csh b/utils/cmt_frechet/cmt_frechet1.csh index ec5298826..f7c478896 100755 --- a/utils/cmt_frechet/cmt_frechet1.csh +++ b/utils/cmt_frechet/cmt_frechet1.csh @@ -10,8 +10,8 @@ foreach extension (Mrr Mtt Mpp Mrt Mrp Mtp depth latitude longitude) # setup the calculation for the Frechet derivative with respect to ${extension} -rm in_data_files/CMTSOLUTION -mv in_data_files/CMTSOLUTION_${extension} in_data_files/CMTSOLUTION +rm DATA/CMTSOLUTION +mv DATA/CMTSOLUTION_${extension} DATA/CMTSOLUTION sleep 180 go_solver_cmt @@ -27,6 +27,6 @@ cd .. end # put the backup CMTSOLUTION file back -rm in_data_files/CMTSOLUTION -mv in_data_files/CMTSOLUTION_BACKUP in_data_files/CMTSOLUTION +rm DATA/CMTSOLUTION +mv DATA/CMTSOLUTION_BACKUP DATA/CMTSOLUTION diff --git a/utils/cmt_frechet/go_solver_cmt b/utils/cmt_frechet/go_solver_cmt index 827d3d8fe..99f0d9408 100755 --- a/utils/cmt_frechet/go_solver_cmt +++ b/utils/cmt_frechet/go_solver_cmt @@ -3,13 +3,13 @@ # script to run the solver # name of the file that contains the list of machines -set list_of_machines = `grep MACHINE_FILE in_data_files/Par_file | cut -c 27- ` -set my_local_path = `grep LOCAL_PATH in_data_files/Par_file | cut -c 27- ` +set list_of_machines = `grep MACHINE_FILE DATA/Par_file | cut -c 27- ` +set my_local_path = `grep LOCAL_PATH DATA/Par_file | cut -c 27- ` # read Par_file to get total number of processors needed -set NPROC_XI = `grep NPROC_XI in_data_files/Par_file | cut -c 27- ` -set NPROC_ETA = `grep NPROC_ETA in_data_files/Par_file | cut -c 27- ` +set NPROC_XI = `grep NPROC_XI DATA/Par_file | cut -c 27- ` +set NPROC_ETA = `grep NPROC_ETA DATA/Par_file | cut -c 27- ` # total number of processors is product of values read @ numprocessors = $NPROC_XI * $NPROC_ETA diff --git a/utils/unused_routines/create_header_file.f90 b/utils/unused_routines/create_header_file.f90 index 4893d26b9..3f7331d21 100644 --- a/utils/unused_routines/create_header_file.f90 +++ b/utils/unused_routines/create_header_file.f90 @@ -24,7 +24,7 @@ ! !===================================================================== -! create file in_out_files/OUTPUT_FILES/values_from_mesher.h based upon in_data_files/Par_file +! create file in_out_files/OUTPUT_FILES/values_from_mesher.h based upon DATA/Par_file ! in order to compile the solver with the right array sizes subroutine create_header_file