Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenSource
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Willem Thorbecke
OpenSource
Commits
2a2171b1
Commit
2a2171b1
authored
6 years ago
by
Jan Willem Thorbecke
Browse files
Options
Downloads
Patches
Plain Diff
corecting time-shifts to match kxmod results
parent
2314e4cc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fdelmodc/defineSource.c
+2
-2
2 additions, 2 deletions
fdelmodc/defineSource.c
fdelmodc/demo/compare_green_inmanual.scr
+15
-15
15 additions, 15 deletions
fdelmodc/demo/compare_green_inmanual.scr
fdelmodc/fdelmodc.c
+3
-3
3 additions, 3 deletions
fdelmodc/fdelmodc.c
with
20 additions
and
20 deletions
fdelmodc/defineSource.c
+
2
−
2
View file @
2a2171b1
...
...
@@ -52,7 +52,7 @@ void seedCMWC4096(void);
#define MIN(x,y) ((x) < (y) ? (x) : (y))
#define NINT(x) ((int)((x)>0.0?(x)+0.5:(x)-0.5))
int
defineSource
(
wavPar
wav
,
srcPar
src
,
modPar
mod
,
float
**
src_nwav
,
int
reverse
,
int
verbose
)
int
defineSource
(
wavPar
wav
,
srcPar
src
,
modPar
mod
,
recPar
rec
,
float
**
src_nwav
,
int
reverse
,
int
verbose
)
{
FILE
*
fp
;
size_t
nread
;
...
...
@@ -145,7 +145,7 @@ int defineSource(wavPar wav, srcPar src, modPar mod, float **src_nwav, int rever
}
if
(
src
.
type
<
6
)
{
// shift wavelet with +1/2 DeltaT due to staggered in time
tshift
=
0
.
5
*
wav
.
dt
;
tshift
=
-
(
0
.
5
*
rec
.
skipdt
+
0
.
5
)
*
wav
.
dt
;
for
(
iw
=
1
;
iw
<
iwmax
;
iw
++
)
{
om
=
deltom
*
iw
*
tshift
;
tmp
.
r
=
ctrace
[
iw
].
r
*
cos
(
-
om
)
-
ctrace
[
iw
].
i
*
sin
(
-
om
);
...
...
This diff is collapsed.
Click to expand it.
fdelmodc/demo/compare_green_inmanual.scr
+
15
−
15
View file @
2a2171b1
...
...
@@ -43,11 +43,11 @@ green c=$cp rho=$rho file_src=wave.su zsrc1=500 xrcv=-500,500 dxrcv=5 nt=4096 di
green
c
=
$cp
rho
=
$rho
file_src
=
wave.su
zsrc1
=
500
xrcv
=
-500
,500
dxrcv
=
5
nt
=
4096
dip
=
0
p_vz
=
1
verbose
=
1 | suwind
nt
=
1024
>
shot_green_rvz.su
# rp
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rp.su
| sugain
scale
=
0.5
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rp.su
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
labelsize
=
10
wbox
=
4
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
10
x2end
=
40
f2num
=
-40
>
mon_rp.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rp.su
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rp.su
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
labelsize
=
10
wbox
=
4
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
10
x2end
=
40
f2num
=
-40
>
mon_rp.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rp.su
| sugain
scale
=
0.5
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rp.su
;
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
labelsize
=
10
wbox
=
2
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
x1beg
=
0.255
x1end
=
0.258
x2beg
=
39.5
>
mon_zoom_rp.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rp.su
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rp.su
;
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
labelsize
=
10
wbox
=
2
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
x1beg
=
0.255
x1end
=
0.258
x2beg
=
39.5
>
mon_zoom_rp.eps
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rp.su
| sugain
scale
=
0.5
>
trace_fd.su
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rp.su
>
trace_fd.su
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rp.su
>
trace_green.su
sumax < trace_green.su
outpar
=
nep
...
...
@@ -57,15 +57,15 @@ echo $a
sudiff trace_green.su trace_fd.su | basop
choice
=
shift shift
=
-0
.1 | sugain
scale
=
$a
| suop
op
=
abs | supsgraph
style
=
normal
labelsize
=
12
wbox
=
4
hbox
=
2
label1
=
'time in seconds'
label2
=
"Relative error in percentage of peak"
linewidth
=
0.1
linecolor
=
red
x2beg
=
0.0
x2end
=
1.0
f2num
=
0.0
d2num
=
0.5
>
mon_diff_dx
${
dx
}
_rp.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rp.su
| sugain
scale
=
0.5
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rp.su
)
| basop
choice
=
shift shift
=
-0
.1 | suxgraph
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rp.su
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rp.su
)
| basop
choice
=
shift shift
=
-0
.1 | suxgraph
# rvz
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rvz.su
| sugain
scale
=
0.5
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rvz.su
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
labelsize
=
10
wbox
=
4
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
1e-5
f2num
=
-2e-5
x2end
=
1.5e-5
x2beg
=
-2e-5
>
mon_rvz.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rvz.su
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rvz.su
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
labelsize
=
10
wbox
=
4
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
1e-5
f2num
=
-2e-5
x2end
=
1.5e-5
x2beg
=
-2e-5
>
mon_rvz.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rvz.su
| sugain
scale
=
0.5
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rvz.su
)
| basop
choice
=
shift shift
=
-0
.1 | sugain
scale
=
-1
| supsgraph
style
=
normal
labelsize
=
10
wbox
=
2
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
5e-8
f2num
=
1.96e-5
x2end
=
1.98e-5
x2beg
=
1.96e-5
f1
=
0
x1beg
=
0.255
x1end
=
0.258
>
mon_zoom_rvz.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rvz.su
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rvz.su
)
| basop
choice
=
shift shift
=
-0
.1 | sugain
scale
=
-1
| supsgraph
style
=
normal
labelsize
=
10
wbox
=
2
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
5e-8
f2num
=
1.96e-5
x2end
=
1.98e-5
x2beg
=
1.96e-5
f1
=
0
x1beg
=
0.255
x1end
=
0.258
>
mon_zoom_rvz.eps
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rvz.su
| sugain
scale
=
0.5
>
trace_fd.su
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_rvz.su
>
trace_fd.su
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_rvz.su
>
trace_green.su
sumax < trace_green.su
outpar
=
nep
...
...
@@ -109,11 +109,11 @@ green c=$cp rho=$rho file_src=wave.su zsrc1=500 xrcv=-500,500 dxrcv=5 nt=4096 p_
shift
=
`
perl
-e
"print 0.5*
$dx
/
$cp
;"
`
# rp
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rp.su |
sugain
scale
=
0.5 |
basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rp.su
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
titlesize
=
-1
labelsize
=
10
wbox
=
4
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
0.5
xend
=
2.0
f2num
=
-1
.5> dip_rp.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rp.su | basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rp.su
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
titlesize
=
-1
labelsize
=
10
wbox
=
4
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
0.5
xend
=
2.0
f2num
=
-1
.5> dip_rp.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rp.su |
sugain
scale
=
0.5 |
basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rp.su
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
labelsize
=
10
wbox
=
2
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
x2beg
=
1.8
x1beg
=
0.2430
x1end
=
0.24601
f1num
=
0.243
d1num
=
0.002
>
dip_zoom_rp.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rp.su | basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rp.su
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
labelsize
=
10
wbox
=
2
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
x2beg
=
1.8
x1beg
=
0.2430
x1end
=
0.24601
f1num
=
0.243
d1num
=
0.002
>
dip_zoom_rp.eps
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rp.su |
sugain
scale
=
0.5 |
basop
choice
=
shift shift
=
-
$shift
>
trace_fd.su
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rp.su | basop
choice
=
shift shift
=
-
$shift
>
trace_fd.su
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rp.su
>
trace_green.su
sumax < trace_green.su
outpar
=
nep
...
...
@@ -123,16 +123,16 @@ echo $a
sudiff trace_green.su trace_fd.su | basop
choice
=
shift shift
=
-0
.1 | sugain
scale
=
$a
| suop
op
=
abs | supsgraph
style
=
normal
labelsize
=
12
wbox
=
4
hbox
=
2
label1
=
'time in seconds'
label2
=
"Relative error in percentage of peak"
linewidth
=
0.1
linecolor
=
red
x2beg
=
0.0
x2end
=
1.0
f2num
=
0.0
d2num
=
0.5
>
dip_diff_dx
${
dx
}
_rp.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rp.su |
sugain
scale
=
0.5 |
basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rp.su
)
| basop
choice
=
shift shift
=
-0
.1 | suxgraph
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rp.su | basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rp.su
)
| basop
choice
=
shift shift
=
-0
.1 | suxgraph
# rvz
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rvz.su |
sugain
scale
=
0.5 |
basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rvz.su
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
labelsize
=
10
wbox
=
4
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
6e-10
f2num
=
-1
.2e-9
x2end
=
2e-9
x2beg
=
-1
.3e-9
>
dip_rvz.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rvz.su | basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rvz.su
)
| basop
choice
=
shift shift
=
-0
.1 | supsgraph
style
=
normal
labelsize
=
10
wbox
=
4
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
6e-10
f2num
=
-1
.2e-9
x2end
=
2e-9
x2beg
=
-1
.3e-9
>
dip_rvz.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rvz.su |
sugain
scale
=
0.5 |
basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rvz.su
)
| basop
choice
=
shift shift
=
-0
.1 | sugain
scale
=
-1
| supsgraph
style
=
normal
labelsize
=
10
wbox
=
2
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
5e-9
f2num
=
9.5e-7
x2end
=
9.78e-7
x2beg
=
9.5e-7
x1beg
=
0.2430
x1end
=
0.24601
f1
=
0
f1num
=
0.243
d1num
=
0.002
>
dip_zoom_rvz.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rvz.su | basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rvz.su
)
| basop
choice
=
shift shift
=
-0
.1 | sugain
scale
=
-1
| supsgraph
style
=
normal
labelsize
=
10
wbox
=
2
hbox
=
2
label1
=
'time in seconds'
label2
=
"Amplitude"
linewidth
=
0.1
linecolor
=
red,green
d2num
=
5e-9
f2num
=
9.5e-7
x2end
=
9.78e-7
x2beg
=
9.5e-7
x1beg
=
0.2430
x1end
=
0.24601
f1
=
0
f1num
=
0.243
d1num
=
0.002
>
dip_zoom_rvz.eps
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rvz.su |
sugain
scale
=
0.5 |
basop
choice
=
shift shift
=
-
$shift
>
trace_fd.su
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rvz.su | basop
choice
=
shift shift
=
-
$shift
>
trace_fd.su
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rvz.su
>
trace_green.su
sumax < trace_green.su
outpar
=
nep
...
...
@@ -142,7 +142,7 @@ echo $a
sudiff trace_green.su trace_fd.su | basop
choice
=
shift shift
=
-0
.1 | sugain
scale
=
$a
| suop
op
=
abs | supsgraph
style
=
normal
labelsize
=
12
wbox
=
4
hbox
=
2
label1
=
'time in seconds'
label2
=
"Relative error in percentage of peak"
linewidth
=
0.1
linecolor
=
red
x2beg
=
0.0
x2end
=
1.0
f2num
=
0.0
d2num
=
0.5
>
dip_diff_dx
${
dx
}
_rvz.eps
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rvz.su |
sugain
scale
=
0.5 |
basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rvz.su
)
| basop
choice
=
shift shift
=
-0
.1 | suxgraph
(
suwind
key
=
tracl
min
=
101
max
=
101 < shot_fd_dip_rvz.su | basop
choice
=
shift shift
=
-
$shift
;
suwind
key
=
tracl
min
=
101
max
=
101 < shot_green_dip_rvz.su
)
| basop
choice
=
shift shift
=
-0
.1 | suxgraph
exit
;
######### ELASTIC #######
...
...
This diff is collapsed.
Click to expand it.
fdelmodc/fdelmodc.c
+
3
−
3
View file @
2a2171b1
...
...
@@ -21,7 +21,7 @@ int getParameters(modPar *mod, recPar *rec, snaPar *sna, wavPar *wav, srcPar *sr
int
readModel
(
modPar
mod
,
bndPar
bnd
,
float
*
rox
,
float
*
roz
,
float
*
l2m
,
float
*
lam
,
float
*
muu
,
float
*
tss
,
float
*
tes
,
float
*
tep
);
int
defineSource
(
wavPar
wav
,
srcPar
src
,
modPar
mod
,
float
**
src_nwav
,
int
reverse
,
int
verbose
);
int
defineSource
(
wavPar
wav
,
srcPar
src
,
modPar
mod
,
recPar
rec
,
float
**
src_nwav
,
int
reverse
,
int
verbose
);
int
writeSrcRecPos
(
modPar
*
mod
,
recPar
*
rec
,
srcPar
*
src
,
shotPar
*
shot
);
...
...
@@ -365,7 +365,7 @@ int main(int argc, char **argv)
}
}
defineSource
(
wav
,
src
,
mod
,
src_nwav
,
mod
.
grid_dir
,
verbose
);
defineSource
(
wav
,
src
,
mod
,
rec
,
src_nwav
,
mod
.
grid_dir
,
verbose
);
/* allocate arrays for wavefield and receiver arrays */
...
...
@@ -601,7 +601,7 @@ shared (shot, bnd, mod, src, wav, rec, ixsrc, izsrc, it, src_nwav, verbose)
writeToFile
=
!
(
(((
it
-
rec
.
delay
)
/
rec
.
skipdt
)
+
1
)
%
rec
.
nt
);
itwritten
=
fileno
*
(
rec
.
nt
)
*
rec
.
skipdt
;
isam
=
(
it
-
rec
.
delay
-
itwritten
)
/
rec
.
skipdt
;
isam
=
(
it
-
rec
.
delay
-
itwritten
)
/
rec
.
skipdt
+
1
;
/* Note that time step it=0 (t=0 for t**-fields t=-1/2 dt for v*-field) is not recorded */
/* store time at receiver positions */
getRecTimes
(
mod
,
rec
,
bnd
,
it
,
isam
,
vx
,
vz
,
tzz
,
txx
,
txz
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment