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
9a322921
Commit
9a322921
authored
7 years ago
by
Jan Thorbecke
Browse files
Options
Downloads
Patches
Plain Diff
raytime FD-option added amplitude estimation
parent
21ac4ee1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
fdelmodc/boundaries.c
+3
-0
3 additions, 0 deletions
fdelmodc/boundaries.c
raytime/SrcPositions1.txt
+1
-1
1 addition, 1 deletion
raytime/SrcPositions1.txt
raytime/model.scr
+2
-2
2 additions, 2 deletions
raytime/model.scr
raytime/raytime.c
+16
-4
16 additions, 4 deletions
raytime/raytime.c
with
22 additions
and
7 deletions
fdelmodc/boundaries.c
+
3
−
0
View file @
9a322921
...
...
@@ -1433,6 +1433,9 @@ int boundariesV(modPar mod, bndPar bnd, float *vx, float *vz, float *tzz, float
for
(
ix
=
mod
.
ioPx
;
ix
<
mod
.
iePx
;
ix
++
)
{
iz
=
bnd
.
surface
[
ix
];
tzz
[
ix
*
n1
+
iz
]
=
0
.
0
;
//vz[ix*n1+iz] = -vz[ix*n1+iz+1];
//vz[ix*n1+iz-1] = -vz[ix*n1+iz+2];
}
}
if
(
bnd
.
rig
==
1
)
{
/* free surface at right */
...
...
This diff is collapsed.
Click to expand it.
raytime/SrcPositions1.txt
+
1
−
1
View file @
9a322921
0.000000 0.000000
110
0.000000 0.000000
This diff is collapsed.
Click to expand it.
raytime/model.scr
+
2
−
2
View file @
9a322921
...
...
@@ -17,13 +17,13 @@ export OMP_NUM_THREADS=4
file_cp
=
syncl_cp.su
\
file_rcv
=
z1.su
\
smoothwindow
=
15
\
verbose
=
3
\
verbose
=
5
\
dxrcv
=
10.0
\
xrcv1
=
-2500
xrcv2
=
2500
\
zrcv1
=
0
zrcv2
=
0
\
xsrc
=
0
zsrc
=
1100
\
nxshot
=
1
dxshot
=
10
\
nzshot
=
1
dzshot
=
10
useT2
=
1
nzshot
=
1
dzshot
=
10
useT2
=
1
method
=
fd
exit
...
...
This diff is collapsed.
Click to expand it.
raytime/raytime.c
+
16
−
4
View file @
9a322921
...
...
@@ -117,10 +117,10 @@ int main(int argc, char **argv)
double
t0
,
t1
,
t2
,
tinit
,
tray
,
tio
;
size_t
size
;
int
nw
,
n1
,
ix
,
iz
,
ir
,
ixshot
,
izshot
;
int
irec
,
sbox
,
ipos
;
int
irec
,
sbox
,
ipos
,
nrx
,
nrz
,
nr
;
fcoord
coordsx
,
coordgx
,
Time
;
icoord
grid
,
isrc
;
float
Jr
,
*
ampl
,
*
time
,
*
ttime
,
*
ttime_p
;
float
Jr
,
*
ampl
,
*
time
,
*
ttime
,
*
ttime_p
,
cp_average
;
float
dxrcv
,
dzrcv
;
segy
hdr
;
char
filetime
[
1024
],
fileamp
[
1024
],
*
method
;
...
...
@@ -285,8 +285,20 @@ private (coordgx,irec,Time,Jr)
ipos
=
((
izshot
*
shot
.
nx
)
+
ixshot
)
*
rec
.
n
+
irec
;
time
[
ipos
]
=
ttime
[
rec
.
z
[
irec
]
*
mod
.
nx
+
rec
.
x
[
irec
]];
ampl
[
ipos
]
=
sqrt
(
time
[
ipos
]);
if
(
verbose
>
4
)
vmess
(
"FD: shot=%f,%f receiver at %f(%d),%f(%d) T=%e Ampl=%f"
,
coordsx
.
x
,
coordsx
.
z
,
coordgx
.
x
,
rec
.
x
[
irec
],
coordgx
.
z
,
rec
.
z
[
irec
],
time
[
ipos
],
ampl
[
ipos
]);
/* compute average velocity between source and receiver */
nrx
=
(
rec
.
x
[
irec
]
-
isrc
.
x
);
nrz
=
(
rec
.
z
[
irec
]
-
isrc
.
z
);
nr
=
abs
(
nrx
)
+
abs
(
nrz
);
cp_average
=
0
.
0
;
for
(
ir
=
0
;
ir
<
nr
;
ir
++
)
{
ix
=
isrc
.
x
+
floor
((
ir
*
nrx
)
/
nr
);
iz
=
isrc
.
z
+
floor
((
ir
*
nrz
)
/
nr
);
//fprintf(stderr,"ir=%d ix=%d iz=%d velocity=%f\n", ir, ix, iz, velocity[ix*mod.nz+iz]);
cp_average
+=
velocity
[
ix
*
mod
.
nz
+
iz
];
}
cp_average
=
cp_average
/
((
float
)
nr
);
ampl
[
ipos
]
=
sqrt
(
time
[
ipos
]
*
cp_average
);
if
(
verbose
>
4
)
vmess
(
"FD: shot=%f,%f receiver at %f(%d),%f(%d) T=%e V=%f Ampl=%f"
,
coordsx
.
x
,
coordsx
.
z
,
coordgx
.
x
,
rec
.
x
[
irec
],
coordgx
.
z
,
rec
.
z
[
irec
],
time
[
ipos
],
cp_average
,
ampl
[
ipos
]);
}
}
t2
=
wallclock_time
();
...
...
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