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
8f04f516
Commit
8f04f516
authored
4 years ago
by
JanThorbecke
Browse files
Options
Downloads
Patches
Plain Diff
more verbose
parent
60d2a52d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
marchenko/marchenko.c
+8
-3
8 additions, 3 deletions
marchenko/marchenko.c
with
8 additions
and
3 deletions
marchenko/marchenko.c
+
8
−
3
View file @
8f04f516
...
@@ -272,14 +272,16 @@ int main (int argc, char **argv)
...
@@ -272,14 +272,16 @@ int main (int argc, char **argv)
for
(
i
=
0
;
i
<
nxs
;
i
++
)
muteW
[
i
]
=
muteW
[
i
]
-
itmin
;
for
(
i
=
0
;
i
<
nxs
;
i
++
)
muteW
[
i
]
=
muteW
[
i
]
-
itmin
;
timeShift
(
G_d
,
nts
,
nxs
,
dt
,
tshift
,
fmin
,
fmax
);
timeShift
(
G_d
,
nts
,
nxs
,
dt
,
tshift
,
fmin
,
fmax
);
}
}
/*
*/
for
(
i
=
0
;
i
<
nxs
;
i
++
)
tsynW
[
i
]
=
NINT
(
i
*
dxs
*
p
/
dt
);
for
(
i
=
0
;
i
<
nxs
;
i
++
)
tsynW
[
i
]
=
NINT
(
i
*
dxs
*
p
/
dt
);
//for (i=0; i<nxs; i++) tsynW[i] = 0.0;
//for (i=0; i<nxs; i++) tsynW[i] = 0.0;
if
(
Nfoc
!=
1
)
verr
(
"For plane-wave focusing only one function can be computed at the same time"
);
if
(
Nfoc
!=
1
)
verr
(
"For plane-wave focusing only one function can be computed at the same time"
);
//fprintf(stderr,"itmin=%d tshift=%f =%d \n", itmin, tshift, NINT(tshift/dt));
//fprintf(stderr,"itmin=%d tshift=%f =%d \n", itmin, tshift, NINT(tshift/dt));
//for (i=0; i<nxs; i++) fprintf(stderr,"i=%d window=%f\n", i, tsynW[i]*dt);
//for (i=0; i<nxs; i++) fprintf(stderr,"i=%d window=%f\n", i, tsynW[i]*dt);
/* // TESTING SHIFT
tshift=0.3;
for (i=0; i<nxs; i++) tsynW[i] = NINT(0.3/dt);
*/
}
}
else
{
/* just fill with zero's */
else
{
/* just fill with zero's */
//itmin=0;
//itmin=0;
...
@@ -618,11 +620,14 @@ int main (int argc, char **argv)
...
@@ -618,11 +620,14 @@ int main (int argc, char **argv)
/* Apply mute with window for Gmin */
/* Apply mute with window for Gmin */
if
(
plane_wave
==
1
)
{
if
(
plane_wave
==
1
)
{
/* for plane wave with angle tshift downward */
/* for plane wave with angle tshift downward */
if
(
verbose
>
1
)
vmess
(
"Gmin planewave tshift=%f"
,
tshift
);
applyMute_tshift
(
Gmin
,
muteW
,
smooth
,
4
,
Nfoc
,
nxs
,
nts
,
ixpos
,
npos
,
shift
,
1
,
tsynW
);
applyMute_tshift
(
Gmin
,
muteW
,
smooth
,
4
,
Nfoc
,
nxs
,
nts
,
ixpos
,
npos
,
shift
,
1
,
tsynW
);
if
(
src_angle
>
0
.
0
)
{
if
(
src_angle
>
0
.
0
)
{
if
(
verbose
>
1
)
vmess
(
"Gmin planewave tshift=%f"
,
tshift
);
timeShift
(
Gmin
,
nts
,
npos
,
dt
,
tshift
,
fmin
,
fmax
);
timeShift
(
Gmin
,
nts
,
npos
,
dt
,
tshift
,
fmin
,
fmax
);
}
}
else
{
if
(
verbose
>
1
)
vmess
(
"Gmin NO planewave tshift"
);
}
}
}
else
{
else
{
applyMute
(
Gmin
,
muteW
,
smooth
,
4
,
Nfoc
,
nxs
,
nts
,
ixpos
,
npos
,
shift
,
tsynW
);
applyMute
(
Gmin
,
muteW
,
smooth
,
4
,
Nfoc
,
nxs
,
nts
,
ixpos
,
npos
,
shift
,
tsynW
);
...
...
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