Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GPIAG-Software
IFOS2D
Commits
91b0fbf6
Commit
91b0fbf6
authored
Dec 10, 2015
by
Florian Wittkamp
Browse files
Fixed SH toy example
parent
608c9d4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
genmod/toy_example_elastic_start.c
View file @
91b0fbf6
...
...
@@ -260,11 +260,6 @@ void model_elastic(float ** rho, float ** pi, float ** u){
sprintf
(
modfile
,
"%s_vp_it0.bin.%i%i"
,
INV_MODELFILE
,
POS
[
1
],
POS
[
2
]);
remove
(
modfile
);
free_vector
(
pts
,
1
,
L
);
}
...
...
genmod/toy_example_elastic_true.c
View file @
91b0fbf6
...
...
@@ -179,9 +179,7 @@ void model_elastic(float ** rho, float ** pi, float ** u){
free_vector
(
flrho
,
1
,
nodes
);
free_vector
(
flvp
,
1
,
nodes
);
free_vector
(
flvs
,
1
,
nodes
);
free_vector
(
pts
,
1
,
L
);
}
...
...
par/run_toy_example_SH.sh
View file @
91b0fbf6
...
...
@@ -6,7 +6,7 @@
# compiling all libraries and DENISE
make clean
make denise
MODEL
=
../genmod/toy_example_true.c
make denise
MODEL
=
../genmod/toy_example_true.c
MODEL_EL
=
../genmod/toy_example_elastic_true.c
# starting DENISE for forward modeling
# (depending on the MPI package you maybe have to adjust the following programme call,
...
...
@@ -16,8 +16,6 @@ mpirun -np 4 ../bin/denise in_and_out/toy_example/toy_example_FW_SH.json | tee i
# the forward modeled data have to be renamed for the inversion
for
((
i
=
1
;
i <
=
5
;
i++
))
;
do
mv
su/measured_data/toy_example_vx.su.shot
${
i
}
.it1 su/measured_data/toy_example_x.su.shot
${
i
}
mv
su/measured_data/toy_example_vy.su.shot
${
i
}
.it1 su/measured_data/toy_example_y.su.shot
${
i
}
mv
su/measured_data/toy_example_vz.su.shot
${
i
}
.it1 su/measured_data/toy_example_z.su.shot
${
i
}
done
...
...
@@ -29,7 +27,7 @@ done
# compiling DENISE
make clean
make denise
MODEL
=
../genmod/toy_example_start.c
make denise
MODEL
=
../genmod/toy_example_start.c
MODEL_EL
=
../genmod/toy_example_elastic_start.c
# starting DENISE
#lamboot
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment