Commit 9760baf2 authored by Tilman Steinweg's avatar Tilman Steinweg
Browse files

rotated coordinate system of the input/output

(z<->y): y is now vertical for input/output like in the whole code.
Note that the output and input of the models stayed the same.
The order of the loops over the model should be the same in every function. (The most efficent order)
The models have as fast (n1) directon the z (horizontal) component.
n1/n2/n3 = z/x/y. So with ximage you will see horizontal (n1(z),n2(x)) slices forom top to bottom.
parent 7d13a5aa
...@@ -9,8 +9,8 @@ nx=nx/outx;ny=ny/outy;nz=nz/outz; ...@@ -9,8 +9,8 @@ nx=nx/outx;ny=ny/outy;nz=nz/outz;
fignum=71; fignum=71;
file_inp1='/data14/sdunkl/3DAWAIT/trunk_JURECA/results_toy/grad/toy.gradvp_160.00Hz_it1001'; %preconditioned gradient file_inp1='../par/grad/toy_grad.vp_160.00Hz_it1001'; %preconditioned gradient
file_inp2='/data14/sdunkl/3DAWAIT/trunk_JURECA/results_toy/grad/toy.gradvp_160.00Hz_it1'; %"raw" gradient file_inp2='../par/grad/toy_grad.vp_160.00Hz_it1'; %"raw" gradient
......
...@@ -6,13 +6,13 @@ nx=160; ny=184; nz=160; %ny:vertical ...@@ -6,13 +6,13 @@ nx=160; ny=184; nz=160; %ny:vertical
outx=1; outy=1; outz=1; outx=1; outy=1; outz=1;
dh=0.8; dh=0.8;
nx=nx/outx;ny=ny/outy;nz=nz/outz; nx=nx/outx;ny=ny/outy;nz=nz/outz;
fignum=764; fignum=13;
%file_inp1='/data14/sdunkl/3DAWAIT/trunk_JURECA/results_toy/model/toy_real.vp'; %file_inp1='/data14/sdunkl/3DAWAIT/trunk_JURECA/results_toy/model/toy_real.vp';
%file_inp2='/data14/sdunkl/3DAWAIT/trunk_JURECA/results_toy/model/toy_real.vp'; %file_inp2='/data14/sdunkl/3DAWAIT/trunk_JURECA/results_toy/model/toy_real.vp';
file_inp1='/data14/sdunkl/3DAWAIT/trunk_JURECA/results_toy/model/toy.vp_it60'; file_inp1='../par/model/toy.vp_it0';
file_inp2='/data14/sdunkl/3DAWAIT/trunk_JURECA/results_toy/model/toy.vp_it60'; file_inp2='../par/model/toy.vp_it60';
phi1=0; %rotation angles to x-z plane of first and second plane phi1=0; %rotation angles to x-z plane of first and second plane
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# PARAMETER FILE FOR IFOS3D # PARAMETER FILE FOR IFOS3D
#----------------------------------------------------------------- #-----------------------------------------------------------------
# #
# Note that z denotes the vertical direction ! # Note that y denotes the vertical direction !
# #
#----------------------------------------------------------------------------------- #-----------------------------------------------------------------------------------
#------------------------ MODELING PARAMETERS -------------------------------------- #------------------------ MODELING PARAMETERS --------------------------------------
...@@ -15,8 +15,8 @@ number_of_processors_in_z-direction_(NPROCZ) = 2 ...@@ -15,8 +15,8 @@ number_of_processors_in_z-direction_(NPROCZ) = 2
# #
#-------------------- 3-D Grid ----------------------------------- #-------------------- 3-D Grid -----------------------------------
number_of_gridpoints_in_x-direction_(NX) = 160 number_of_gridpoints_in_x-direction_(NX) = 160
number_of_gridpoints_in_y-direction_(NY) = 160 number_of_gridpoints_in_y-direction_(NY) = 184
number_of_gridpoints_in_z-direction_(NZ) = 184 number_of_gridpoints_in_z-direction_(NZ) = 160
distance_between_gridpoints(in_m)_in_x-direction_(DX) = 0.8 distance_between_gridpoints(in_m)_in_x-direction_(DX) = 0.8
distance_between_gridpoints(in_m)_in_y-direction_(DY) = 0.8 distance_between_gridpoints(in_m)_in_y-direction_(DY) = 0.8
distance_between_gridpoints(in_m)_in_z-direction_(DZ) = 0.8 distance_between_gridpoints(in_m)_in_z-direction_(DZ) = 0.8
...@@ -35,7 +35,7 @@ timestep_(in_seconds)_(DT) = 5.0e-5 ...@@ -35,7 +35,7 @@ timestep_(in_seconds)_(DT) = 5.0e-5
#--------------------Source--------------------------------------- #--------------------Source---------------------------------------
# Shape_of_source-signal: # Shape_of_source-signal:
(ricker=1;fumue=2;from_SIGNAL_FILE=3;SIN**3=4;deltapulse=5)_(SOURCE_SHAPE) = 4 (ricker=1;fumue=2;from_SIGNAL_FILE=3;SIN**3=4;deltapulse=5)_(SOURCE_SHAPE) = 4
point_source_(explosive=1;force_in_x=2;in_y=3;in_z=4;custom=5)_(SOURCE_TYPE) = 4 point_source_(explosive=1;force_in_x=2;in_z=3;in_y=4;custom=5)_(SOURCE_TYPE) = 4
# If SOURCE_TYPE <5 the following two lines are ignored # If SOURCE_TYPE <5 the following two lines are ignored
force_angle_between_x_y_(in_degree)_(ALPHA) = 45.0 force_angle_between_x_y_(in_degree)_(ALPHA) = 45.0
force_angle_between_x_z_(in_degree)_(BETA) = 45.0 force_angle_between_x_z_(in_degree)_(BETA) = 45.0
...@@ -81,7 +81,7 @@ output_of_snapshots_(SNAP)(yes>0) = 0 ...@@ -81,7 +81,7 @@ output_of_snapshots_(SNAP)(yes>0) = 0
first_snapshot_(in_sec)_(TSNAP1) = 0.01 first_snapshot_(in_sec)_(TSNAP1) = 0.01
last_snapshot_(in_sec)_(TSNAP2) = 0.24 last_snapshot_(in_sec)_(TSNAP2) = 0.24
increment_(in_sec)_(TSNAPINC) = 0.0075 increment_(in_sec)_(TSNAPINC) = 0.0075
# Note that z denotes the vertical direction ! # Note that y denotes the vertical direction !
increment_x-direction_(IDX) = 1 increment_x-direction_(IDX) = 1
increment_y-direction_(IDY) = 1 increment_y-direction_(IDY) = 1
increment_z-direction_(IDZ) = 1 increment_z-direction_(IDZ) = 1
...@@ -91,9 +91,9 @@ basic_filename_(SNAP_FILE) = ./snap/back ...@@ -91,9 +91,9 @@ basic_filename_(SNAP_FILE) = ./snap/back
#if SNAP = 1,2 the following line is ignored #if SNAP = 1,2 the following line is ignored
(SNAP_PLANE) = 1 (SNAP_PLANE) = 1
#output of snapshots as energy wihout sign SNAP_PLANE=1 #output of snapshots as energy wihout sign SNAP_PLANE=1
#energy with sign true for x-z-plane SNAP_PLANE=2 #energy with sign true for x-y-plane SNAP_PLANE=2
#energy with sign true for x-y-plane SNAP_PLANE=3 #energy with sign true for x-z-plane SNAP_PLANE=3
#energy with sign true for y-z-plane SNAP_PLANE=4 #energy with sign true for z-y-plane SNAP_PLANE=4
# #
#----------------------Receiver----------------------------------- #----------------------Receiver-----------------------------------
output_of_seismograms_(SEISMO) = 1 output_of_seismograms_(SEISMO) = 1
...@@ -110,7 +110,7 @@ read_receiver_positions_(READREC) = 2 ...@@ -110,7 +110,7 @@ read_receiver_positions_(READREC) = 2
REC_FILE = ./receiver/receiver.dat REC_FILE = ./receiver/receiver.dat
reference_point_for_receiver_coordinate_system_(REFREC) = 0.0 , 0.0 , 0.0 reference_point_for_receiver_coordinate_system_(REFREC) = 0.0 , 0.0 , 0.0
# if READREC=1 the following receiver options are ignored # if READREC=1 the following receiver options are ignored
# Note that z denotes the vertical direction ! # Note that y denotes the vertical direction !
# #
# --------------------Receiver line ------------------------------- # --------------------Receiver line -------------------------------
position_of_first_receiver_(in_m)_(XREC1,YREC1,ZREC1) = 90.0 , 90.0 , 90.0 position_of_first_receiver_(in_m)_(XREC1,YREC1,ZREC1) = 90.0 , 90.0 , 90.0
...@@ -124,7 +124,7 @@ number_of_planes_(no<=0)_(REC_ARRAY) = 1 ...@@ -124,7 +124,7 @@ number_of_planes_(no<=0)_(REC_ARRAY) = 1
depth_of_first_(upper)_plane_(in_m)_(REC_ARRAY_DEPTH) = 24.0 depth_of_first_(upper)_plane_(in_m)_(REC_ARRAY_DEPTH) = 24.0
vertical_distance_between_planes_(in_m)_(REC_ARRAY_DIST) = 30.0 vertical_distance_between_planes_(in_m)_(REC_ARRAY_DIST) = 30.0
distance_between_receivers_in_x-direction_(in_gridpoints)_(DRX) = 10 distance_between_receivers_in_x-direction_(in_gridpoints)_(DRX) = 10
distance_between_receivers_in_y-direction_(in_gridpoints)_(DRY) = 10 distance_between_receivers_in_y-direction_(in_gridpoints)_(DRZ) = 10
# #
#-------------------- Seismogram Output----------------------------- #-------------------- Seismogram Output-----------------------------
samplingrate_and_timelag_(in_timesteps!)_(NDT,NDTSHIFT) = 1 , 0 samplingrate_and_timelag_(in_timesteps!)_(NDT,NDTSHIFT) = 1 , 0
......
{ {
"MODELING PARAMETERS" : "comment", "MODELING PARAMETERS" : "comment",
"Note that y denotes the vertical direction !" : "comment",
"Domain Decomposition" : "comment", "Domain Decomposition" : "comment",
"NPROCX" : "2", "NPROCX" : "2",
"NPROCY" : "2", "NPROCY" : "2",
...@@ -8,8 +10,8 @@ ...@@ -8,8 +10,8 @@
"3-D Grid" : "comment", "3-D Grid" : "comment",
"NX" : "160", "NX" : "160",
"NY" : "160", "NY" : "184",
"NZ" : "184", "NZ" : "160",
"DX" : "0.8", "DX" : "0.8",
"DY" : "0.8", "DY" : "0.8",
"DZ" : "0.8", "DZ" : "0.8",
...@@ -81,7 +83,7 @@ ...@@ -81,7 +83,7 @@
"REC_ARRAY_DEPTH" : "24.0", "REC_ARRAY_DEPTH" : "24.0",
"REC_ARRAY_DIST" : "30.0", "REC_ARRAY_DIST" : "30.0",
"DRX" : "10", "DRX" : "10",
"DRY" : "10", "DRZ" : "10",
"Seismograms" : "comment", "Seismograms" : "comment",
......
{ {
"MODELING PARAMETERS" : "comment", "MODELING PARAMETERS" : "comment",
"Note that z denotes the vertical direction !" : "comment", "Note that y denotes the vertical direction !" : "comment",
"Domain Decomposition" : "comment", "Domain Decomposition" : "comment",
"NPROCX" : "2", "NPROCX" : "2",
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
"3-D Grid" : "comment", "3-D Grid" : "comment",
"NX" : "160", "NX" : "160",
"NY" : "160", "NY" : "184",
"NZ" : "184", "NZ" : "160",
"DX" : "0.8", "DX" : "0.8",
"DY" : "0.8", "DY" : "0.8",
"DZ" : "0.8", "DZ" : "0.8",
...@@ -36,11 +36,11 @@ ...@@ -36,11 +36,11 @@
"External signal input instead of SOURCE_SHAPE" : "comment", "External signal input instead of SOURCE_SHAPE" : "comment",
"SIGNAL_FILE" : "./STF/stf.su", "SIGNAL_FILE" : "./STF/stf.su",
"SOURCE_TYPE" : "4", "SOURCE_TYPE" : "4",
"SOURCE_TYPE values (point_source): explosive=1;force_in_x=2;force_in_y=3;force_in_z=4;custom=5" : "comment", "SOURCE_TYPE values (point_source): explosive=1;force_in_x=2;force_in_z=3;force_in_y=4;custom=5" : "comment",
"If SOURCE_TYPE <5 the following two lines are ignored" : "comment", "If SOURCE_TYPE <5 the following two lines are ignored" : "comment",
"ALPHA" : "45.0", "ALPHA" : "45.0",
"BETA" : "45.0", "BETA" : "45.0",
"ALPHA=force_angle_between_x_y_(in_degree) (BETA between x_z)" : "comment", "ALPHA=force_angle_between_x_y(vertical)_(in_degree) (BETA between x_z)" : "comment",
"read_source_positions_from_SOURCE_FILE_(yes=1;Plane wave=2) " : "comment", "read_source_positions_from_SOURCE_FILE_(yes=1;Plane wave=2) " : "comment",
"SRCREC" : "1", "SRCREC" : "1",
"SOURCE_FILE" : "./sources/sources_toy.dat", "SOURCE_FILE" : "./sources/sources_toy.dat",
...@@ -112,9 +112,9 @@ ...@@ -112,9 +112,9 @@
"if SNAP !=3 the following line is ignored" : "comment", "if SNAP !=3 the following line is ignored" : "comment",
"SNAP_PLANE" : "1", "SNAP_PLANE" : "1",
"output of snapshots as energy wihout sign SNAP_PLANE=1" : "comment", "output of snapshots as energy wihout sign SNAP_PLANE=1" : "comment",
"energy with sign true for x-z-plane SNAP_PLANE=2" : "comment", "energy with sign true for x-y-plane SNAP_PLANE=2" : "comment",
"energy with sign true for x-y-plane SNAP_PLANE=3" : "comment", "energy with sign true for x-z-plane SNAP_PLANE=3" : "comment",
"energy with sign true for y-z-plane SNAP_PLANE=4" : "comment", "energy with sign true for z-x-plane SNAP_PLANE=4" : "comment",
"Receiver" : "comment", "Receiver" : "comment",
"output_of_seismograms" : "comment", "output_of_seismograms" : "comment",
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
"reference_point_for_receiver_coordinate_system" : "comment", "reference_point_for_receiver_coordinate_system" : "comment",
"REFRECX, REFRECY, REFRECZ" : "0.0 , 0.0, 0.0", "REFRECX, REFRECY, REFRECZ" : "0.0 , 0.0, 0.0",
"if READREC=1 the following three lines are ignored" : "comment", "if READREC=1 the following three lines are ignored" : "comment",
"Note that z denotes the vertical direction !" : "comment", "Note that y denotes the vertical direction !" : "comment",
"position_of_first_receiver_(in_m)" : "comment", "position_of_first_receiver_(in_m)" : "comment",
"XREC1, YREC1, ZREC1" : "90.0 , 90.0, 90.0", "XREC1, YREC1, ZREC1" : "90.0 , 90.0, 90.0",
"position_of_last_receiver_(in_m)" : "comment", "position_of_last_receiver_(in_m)" : "comment",
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
"REC_ARRAY_DIST" : "30.0", "REC_ARRAY_DIST" : "30.0",
"distance_between_receivers_in_x/y-direction" : "comment", "distance_between_receivers_in_x/y-direction" : "comment",
"DRX" : "10", "DRX" : "10",
"DRY" : "10", "DRZ" : "10",
"Seismograms" : "comment", "Seismograms" : "comment",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# PARAMETER FILE FOR IFOS3D # PARAMETER FILE FOR IFOS3D
#----------------------------------------------------------------- #-----------------------------------------------------------------
# #
# Note that z denotes the vertical direction ! # Note that y denotes the vertical direction !
# #
#----------------------------------------------------------------------------------- #-----------------------------------------------------------------------------------
#------------------------ MODELING PARAMETERS -------------------------------------- #------------------------ MODELING PARAMETERS --------------------------------------
...@@ -15,8 +15,8 @@ number_of_processors_in_z-direction_(NPROCZ) = 2 ...@@ -15,8 +15,8 @@ number_of_processors_in_z-direction_(NPROCZ) = 2
# #
#-------------------- 3-D Grid ----------------------------------- #-------------------- 3-D Grid -----------------------------------
number_of_gridpoints_in_x-direction_(NX) = 160 number_of_gridpoints_in_x-direction_(NX) = 160
number_of_gridpoints_in_y-direction_(NY) = 160 number_of_gridpoints_in_y-direction_(NY) = 184
number_of_gridpoints_in_z-direction_(NZ) = 184 number_of_gridpoints_in_z-direction_(NZ) = 160
distance_between_gridpoints(in_m)_in_x-direction_(DX) = 0.8 distance_between_gridpoints(in_m)_in_x-direction_(DX) = 0.8
distance_between_gridpoints(in_m)_in_y-direction_(DY) = 0.8 distance_between_gridpoints(in_m)_in_y-direction_(DY) = 0.8
distance_between_gridpoints(in_m)_in_z-direction_(DZ) = 0.8 distance_between_gridpoints(in_m)_in_z-direction_(DZ) = 0.8
...@@ -35,7 +35,7 @@ timestep_(in_seconds)_(DT) = 5.0e-5 ...@@ -35,7 +35,7 @@ timestep_(in_seconds)_(DT) = 5.0e-5
#--------------------Source--------------------------------------- #--------------------Source---------------------------------------
# Shape_of_source-signal: # Shape_of_source-signal:
(ricker=1;fumue=2;from_SIGNAL_FILE=3;SIN**3=4;deltapulse=5)_(SOURCE_SHAPE) = 4 (ricker=1;fumue=2;from_SIGNAL_FILE=3;SIN**3=4;deltapulse=5)_(SOURCE_SHAPE) = 4
point_source_(explosive=1;force_in_x=2;in_y=3;in_z=4;custom=5)_(SOURCE_TYPE) = 4 point_source_(explosive=1;force_in_x=2;in_z=3;in_y=4;custom=5)_(SOURCE_TYPE) = 4
# If SOURCE_TYPE <5 the following two lines are ignored # If SOURCE_TYPE <5 the following two lines are ignored
force_angle_between_x_y_(in_degree)_(ALPHA) = 45.0 force_angle_between_x_y_(in_degree)_(ALPHA) = 45.0
force_angle_between_x_z_(in_degree)_(BETA) = 45.0 force_angle_between_x_z_(in_degree)_(BETA) = 45.0
...@@ -81,7 +81,7 @@ output_of_snapshots_(SNAP)(yes>0) = 0 ...@@ -81,7 +81,7 @@ output_of_snapshots_(SNAP)(yes>0) = 0
first_snapshot_(in_sec)_(TSNAP1) = 0.01 first_snapshot_(in_sec)_(TSNAP1) = 0.01
last_snapshot_(in_sec)_(TSNAP2) = 0.24 last_snapshot_(in_sec)_(TSNAP2) = 0.24
increment_(in_sec)_(TSNAPINC) = 0.0075 increment_(in_sec)_(TSNAPINC) = 0.0075
# Note that z denotes the vertical direction ! # Note that y denotes the vertical direction !
increment_x-direction_(IDX) = 1 increment_x-direction_(IDX) = 1
increment_y-direction_(IDY) = 1 increment_y-direction_(IDY) = 1
increment_z-direction_(IDZ) = 1 increment_z-direction_(IDZ) = 1
...@@ -91,9 +91,9 @@ basic_filename_(SNAP_FILE) = ./snap/back ...@@ -91,9 +91,9 @@ basic_filename_(SNAP_FILE) = ./snap/back
#if SNAP = 1,2 the following line is ignored #if SNAP = 1,2 the following line is ignored
(SNAP_PLANE) = 1 (SNAP_PLANE) = 1
#output of snapshots as energy wihout sign SNAP_PLANE=1 #output of snapshots as energy wihout sign SNAP_PLANE=1
#energy with sign true for x-z-plane SNAP_PLANE=2 #energy with sign true for x-y-plane SNAP_PLANE=2
#energy with sign true for x-y-plane SNAP_PLANE=3 #energy with sign true for x-z-plane SNAP_PLANE=3
#energy with sign true for y-z-plane SNAP_PLANE=4 #energy with sign true for z-x-plane SNAP_PLANE=4
# #
#----------------------Receiver----------------------------------- #----------------------Receiver-----------------------------------
output_of_seismograms_(SEISMO) = 1 output_of_seismograms_(SEISMO) = 1
...@@ -110,7 +110,7 @@ read_receiver_positions_(READREC) = 2 ...@@ -110,7 +110,7 @@ read_receiver_positions_(READREC) = 2
REC_FILE = ./receiver/receiver.dat REC_FILE = ./receiver/receiver.dat
reference_point_for_receiver_coordinate_system_(REFREC) = 0.0 , 0.0 , 0.0 reference_point_for_receiver_coordinate_system_(REFREC) = 0.0 , 0.0 , 0.0
# if READREC=1 the following receiver options are ignored # if READREC=1 the following receiver options are ignored
# Note that z denotes the vertical direction ! # Note that y denotes the vertical direction !
# #
# --------------------Receiver line ------------------------------- # --------------------Receiver line -------------------------------
position_of_first_receiver_(in_m)_(XREC1,YREC1,ZREC1) = 90.0 , 90.0 , 90.0 position_of_first_receiver_(in_m)_(XREC1,YREC1,ZREC1) = 90.0 , 90.0 , 90.0
...@@ -124,7 +124,7 @@ number_of_planes_(no<=0)_(REC_ARRAY) = 1 ...@@ -124,7 +124,7 @@ number_of_planes_(no<=0)_(REC_ARRAY) = 1
depth_of_first_(upper)_plane_(in_m)_(REC_ARRAY_DEPTH) = 24.0 depth_of_first_(upper)_plane_(in_m)_(REC_ARRAY_DEPTH) = 24.0
vertical_distance_between_planes_(in_m)_(REC_ARRAY_DIST) = 30.0 vertical_distance_between_planes_(in_m)_(REC_ARRAY_DIST) = 30.0
distance_between_receivers_in_x-direction_(in_gridpoints)_(DRX) = 10 distance_between_receivers_in_x-direction_(in_gridpoints)_(DRX) = 10
distance_between_receivers_in_y-direction_(in_gridpoints)_(DRY) = 10 distance_between_receivers_in_y-direction_(in_gridpoints)_(DRZ) = 10
# #
#-------------------- Seismogram Output----------------------------- #-------------------- Seismogram Output-----------------------------
samplingrate_and_timelag_(in_timesteps!)_(NDT,NDTSHIFT) = 1 , 0 samplingrate_and_timelag_(in_timesteps!)_(NDT,NDTSHIFT) = 1 , 0
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
"3-D Grid" : "comment", "3-D Grid" : "comment",
"NX" : "160", "NX" : "160",
"NY" : "160", "NY" : "184",
"NZ" : "184", "NZ" : "160",
"DX" : "0.8", "DX" : "0.8",
"DY" : "0.8", "DY" : "0.8",
"DZ" : "0.8", "DZ" : "0.8",
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
"REC_ARRAY_DEPTH" : "24.0", "REC_ARRAY_DEPTH" : "24.0",
"REC_ARRAY_DIST" : "30.0", "REC_ARRAY_DIST" : "30.0",
"DRX" : "10", "DRX" : "10",
"DRY" : "10", "DRZ" : "10",
"Seismograms" : "comment", "Seismograms" : "comment",
"NDT" : "1", "NDT" : "1",
......
{ {
"MODELING PARAMETERS" : "comment", "MODELING PARAMETERS" : "comment",
"Note that y denotes the vertical direction !" : "comment",
"Domain Decomposition" : "comment", "Domain Decomposition" : "comment",
"NPROCX" : "2", "NPROCX" : "2",
"NPROCY" : "2", "NPROCY" : "2",
...@@ -8,8 +10,8 @@ ...@@ -8,8 +10,8 @@
"3-D Grid" : "comment", "3-D Grid" : "comment",
"NX" : "160", "NX" : "160",
"NY" : "160", "NY" : "184",
"NZ" : "184", "NZ" : "160",
"DX" : "0.8", "DX" : "0.8",
"DY" : "0.8", "DY" : "0.8",
"DZ" : "0.8", "DZ" : "0.8",
...@@ -52,14 +54,14 @@ ...@@ -52,14 +54,14 @@
"Receiver" : "comment", "Receiver" : "comment",
"SEISMO" : "1", "SEISMO" : "1",
"READREC" : "2", "READREC" : "2",
"Receiver array" : "comment", "Receiver array" : "comment",
"REC_ARRAY" : "1", "REC_ARRAY" : "1",
"REC_ARRAY_DEPTH" : "24.0", "REC_ARRAY_DEPTH" : "24.0",
"REC_ARRAY_DIST" : "30.0", "REC_ARRAY_DIST" : "30.0",
"DRX" : "10", "DRX" : "10",
"DRY" : "10", "DRZ" : "10",
"Seismograms" : "comment", "Seismograms" : "comment",
......
...@@ -16,5 +16,5 @@ ...@@ -16,5 +16,5 @@
# #
# Symbols: # Symbols:
# XSRC= x-coordinate of source point [meter] # XSRC= x-coordinate of source point [meter]
# YSRC= y-coordinate of source point [meter] # YSRC= y-coordinate of source point [meter] (vertical)
# ZSRC= z-coordinate of source point [meter] (vertical) # ZSRC= z-coordinate of source point [meter]
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
% %
% Symbols: % Symbols:
% XSRC= x-coordinate of source point [meter] % XSRC= x-coordinate of source point [meter]
% YSRC= y-coordinate of source point [meter] % YSRC= y-coordinate of source point [meter] (vertical)
% ZSRC= z-coordinate of source point [meter] (vertical) % ZSRC= z-coordinate of source point [meter]
% TD= excitation time (time-delay) for source node [s] % TD= excitation time (time-delay) for source node [s]
% FC= centre frequency of source signal [Hz] % FC= centre frequency of source signal [Hz]
% AMP= maximum amplitude of source signal % AMP= maximum amplitude of source signal
......
32.0 32.0 92.0 0.005 300.0 1.0 32.0 92.0 32.0 0.005 300.0 1.0
32.0 52.8 92.0 0.005 300.0 1.0 32.0 92.0 52.8 0.005 300.0 1.0
32.0 74.4 92.0 0.005 300.0 1.0 32.0 92.0 74.4 0.005 300.0 1.0
32.0 96.0 92.0 0.005 300.0 1.0 32.0 92.0 96.0 0.005 300.0 1.0
64.0 32.0 92.0 0.005 300.0 1.0 64.0 92.0 32.0 0.005 300.0 1.0
64.0 52.8 92.0 0.005 300.0 1.0 64.0 92.0 52.8 0.005 300.0 1.0
64.0 74.4 92.0 0.005 300.0 1.0 64.0 92.0 74.4 0.005 300.0 1.0
64.0 96.0 92.0 0.005 300.0 1.0 64.0 92.0 96.0 0.005 300.0 1.0
96.0 32.0 92.0 0.005 300.0 1.0 96.0 92.0 32.0 0.005 300.0 1.0
96.0 52.8 92.0 0.005 300.0 1.0 96.0 92.0 52.8 0.005 300.0 1.0
96.0 74.4 92.0 0.005 300.0 1.0 96.0 92.0 74.4 0.005 300.0 1.0
96.0 96.0 92.0 0.005 300.0 1.0 96.0 92.0 96.0 0.005 300.0 1.0
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
% %
% Symbols: % Symbols:
% XSRC= x-coordinate of source point [meter] % XSRC= x-coordinate of source point [meter]
% YSRC= y-coordinate of source point [meter] % YSRC= y-coordinate of source point [meter] (vertical)
% ZSRC= z-coordinate of source point [meter] (vertical) % ZSRC= z-coordinate of source point [meter]
% TD= excitation time (time-delay) for source node [s] % TD= excitation time (time-delay) for source node [s]
% FC= centre frequency of source signal [Hz] % FC= centre frequency of source signal [Hz]
% AMP= maximum amplitude of source signal % AMP= maximum amplitude of source signal
......
...@@ -527,8 +527,8 @@ float *** ptaus, float *** ptaup, float *peta, float **srcpos, int nsrc, int **r ...@@ -527,8 +527,8 @@ float *** ptaus, float *** ptaup, float *peta, float **srcpos, int nsrc, int **r
snapouty=NY/(float)IDY; snapouty=NY/(float)IDY;
snapoutz=NZ/(float)IDZ; snapoutz=NZ/(float)IDZ;
fprintf(fp," Output of snapshot gridpoints per node (NX/NPROCX/IDX) %8.2f .\n", snapoutx); fprintf(fp," Output of snapshot gridpoints per node (NX/NPROCX/IDX) %8.2f .\n", snapoutx);
fprintf(fp," Output of snapshot gridpoints per node (NY/NPROCY/IDY) %8.2f .\n", snapoutz); fprintf(fp," Output of snapshot gridpoints per node (NY/NPROCY/IDY) %8.2f .\n", snapouty);
fprintf(fp," Output of snapshot gridpoints per node (NZ/NPROCZ/IDZ) %8.2f .\n", snapouty); fprintf(fp," Output of snapshot gridpoints per node (NZ/NPROCZ/IDZ) %8.2f .\n", snapoutz);
if (snapoutx-(int)snapoutx>0) if (snapoutx-(int)snapoutx>0)
err("\n\n Ratio NX-NPROCX-IDX must be whole-numbered \n\n"); err("\n\n Ratio NX-NPROCX-IDX must be whole-numbered \n\n");
...@@ -550,20 +550,16 @@ float *** ptaus, float *** ptaup, float *peta, float **srcpos, int nsrc, int **r ...@@ -550,20 +550,16 @@ float *** ptaus, float *** ptaup, float *peta, float **srcpos, int nsrc, int **r
if ((SEISMO>0) && (MYID==0)) { if ((SEISMO>0) && (MYID==0)) {
srec_minx=DX*NX*NPROCX+1, srec_miny=DY*NY*NPROCY+1, srec_minz=DZ*NZ*NPROCZ+1; srec_minx=DX*NX*NPROCX+1, srec_miny=DY*NY*NPROCY+1, srec_minz=DZ*NZ*NPROCZ+1;
srec_maxx=-1.0, srec_maxy=-1.0, srec_maxz=-1.0; srec_maxx=-1.0, srec_maxy=-1.0, srec_maxz=-1.0;
fprintf(fp," Checking for receiver position(s) specified in input file.\n"); fprintf(fp,"\n Checking for receiver position(s) specified in input file.\n");
fprintf(fp," Global grid size in m: %5.2f (x) : %5.2f (y) : %5.2f (z) :.\n",NX*DX*NPROCX,NZ*DZ*NPROCZ,NY*DY*NPROCY); fprintf(fp," Global grid size in m: %5.2f (x) : %5.2f (y) : %5.2f (z) :.\n",NX*DX*NPROCX,NY*DY*NPROCY,NZ*DZ*NPROCZ);
if (ABS_TYPE==2){ if (ABS_TYPE){
if (FREE_SURF==0) fprintf(fp," Global grid size in m(-width of abs.boundary) : \n %5.2f-%5.2f (x in m) : %5.2f-%5.2f (y in m) : %5.2f-%5.2f (z in m).\n",FW*DX,NX*DX*NPROCX-FW*DX,FW*DZ,NZ*DZ*NPROCZ-FW*DZ,FW*DY,NY*DY*NPROCY-FW*DY); if (FREE_SURF==0) fprintf(fp," Global grid size in m(-width of abs.boundary) : \n %5.2f-%5.2f (x in m) : %5.2f-%5.2f (y in m) : %5.2f-%5.2f (z in m).\n",FW*DX,NX*DX*NPROCX-FW*DX,FW*DY,NY*DY*NPROCY-FW*DY,FW*DZ,NZ*DZ*NPROCZ-FW*DZ);
if (FREE_SURF==1) fprintf(fp," Global grid size in m(-width of abs.boundary) : \n %5.2f-%5.2f (x in m) : %5.2f-%5.2f (y in m) : %5.2f-%5.2f (z in m).\n",FW*DX,NX*DX*NPROCX-FW*DX,FW*DZ,NZ*DZ*NPROCZ-FW*DZ,DY,NY*DY*NPROCY-FW*DY); if (FREE_SURF==1) fprintf(fp," Global grid size in m(-width of abs.boundary) : \n %5.2f-%5.2f (x in m) : %5.2f-%5.2f (y in m) : %5.2f-%5.2f (z in m).\n",FW*DX,NX*DX*NPROCX-FW*DX,DY,NY*DY*NPROCY-FW*DY,FW*DZ,NZ*DZ*NPROCZ-FW*DZ);
} }
/* find maximum and minimum source positions coordinate ---- from input file*/ /* find maximum and minimum source positions coordinate ---- from input file*/
/*for usability reasons, "z" - as commonly used - denotes the depth (vertical direction), /*"y" is used for the vertical coordinate */
however, internally "y" is used for the vertical coordinate,
we simply switch the "y" and "z" coordinate as read in the input file,
therefore we determine the minimum/maximum position in y-direction by the ZREC1 variable and vice versa.
this has to be considered for the receiver line coordinates specified in both the input file and separate source/receiver files*/
if (READREC==0) { if (READREC==0) {
if (XREC1>XREC2) { if (XREC1>XREC2) {
...@@ -575,20 +571,20 @@ float *** ptaus, float *** ptaup, float *peta, float **srcpos, int nsrc, int **r ...@@ -575,20 +571,20 @@ float *** ptaus, float *** ptaup, float *peta, float **srcpos, int nsrc, int **r
srec_minx=XREC1; srec_minx=XREC1;
} }
if (YREC1>YREC2) { if (YREC1>YREC2) {
srec_maxz=YREC1; srec_maxy=YREC1;
srec_minz=YREC2; srec_miny=YREC2;
} }
else { else {
srec_maxz=YREC2; srec_maxy=YREC2;
srec_minz=YREC1; srec_miny=YREC1;
} }
if (ZREC1>ZREC2) { if (ZREC1>ZREC2) {
srec_maxy=ZREC1; srec_maxz=ZREC1;
srec_miny=ZREC2; srec_minz=ZREC2;
} }
else { else {
srec_maxy=ZREC2; srec_maxz=ZREC2;
srec_miny=ZREC1;