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
2614c3ce
Commit
2614c3ce
authored
7 years ago
by
Jan Thorbecke
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic changes and ready for marchenko paper R1
parent
11f78187
No related branches found
No related tags found
No related merge requests found
Changes
24
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
marchenko/readTinvData.c
+1
-1
1 addition, 1 deletion
marchenko/readTinvData.c
marchenko/writeDataIter.c
+2
-2
2 additions, 2 deletions
marchenko/writeDataIter.c
utils/syn2d copy.c
+0
-697
0 additions, 697 deletions
utils/syn2d copy.c
utils/syn2d.c
+3
-3
3 additions, 3 deletions
utils/syn2d.c
with
6 additions
and
703 deletions
marchenko/readTinvData.c
+
1
−
1
View file @
2614c3ce
...
...
@@ -19,7 +19,7 @@ typedef struct { /* complex number */
void
findShotInMute
(
float
*
xrcvMute
,
float
xrcvShot
,
int
nxs
,
int
*
imute
);
int
readTinvData
(
char
*
filename
,
float
*
xrcv
,
float
*
xsrc
,
float
*
zsrc
,
int
*
xnx
,
int
N
syn
,
int
nx
,
int
ntfft
,
int
mode
,
int
*
maxval
,
float
*
tinv
,
int
hw
,
int
verbose
)
int
readTinvData
(
char
*
filename
,
float
*
xrcv
,
float
*
xsrc
,
float
*
zsrc
,
int
*
xnx
,
int
N
foc
,
int
nx
,
int
ntfft
,
int
mode
,
int
*
maxval
,
float
*
tinv
,
int
hw
,
int
verbose
)
{
FILE
*
fp
;
segy
hdr
;
...
...
This diff is collapsed.
Click to expand it.
marchenko/writeDataIter.c
+
2
−
2
View file @
2614c3ce
...
...
@@ -17,7 +17,7 @@
void
name_ext
(
char
*
filename
,
char
*
extension
);
int
writeData
(
FILE
*
fp
,
float
*
data
,
segy
*
hdrs
,
int
n1
,
int
n2
);
int
writeDataIter
(
char
*
file_iter
,
float
*
data
,
segy
*
hdrs
,
int
n1
,
int
n2
,
float
d2
,
float
f2
,
int
n2out
,
int
N
syn
,
float
*
xsyn
,
float
*
zsyn
,
int
iter
)
int
writeDataIter
(
char
*
file_iter
,
float
*
data
,
segy
*
hdrs
,
int
n1
,
int
n2
,
float
d2
,
float
f2
,
int
n2out
,
int
N
foc
,
float
*
xsyn
,
float
*
zsyn
,
int
iter
)
{
FILE
*
fp_iter
;
size_t
nwrite
;
...
...
@@ -33,7 +33,7 @@ int writeDataIter(char *file_iter, float *data, segy *hdrs, int n1, int n2, floa
if
(
fp_iter
==
NULL
)
verr
(
"error on creating output file %s"
,
filename
);
tracf
=
1
;
size
=
n1
*
n2
;
for
(
l
=
0
;
l
<
N
syn
;
l
++
)
{
for
(
l
=
0
;
l
<
N
foc
;
l
++
)
{
for
(
i
=
0
;
i
<
n2out
;
i
++
)
{
hdrs
[
i
].
fldr
=
l
+
1
;
hdrs
[
i
].
sx
=
NINT
(
xsyn
[
l
]
*
1000
);
...
...
This diff is collapsed.
Click to expand it.
utils/syn2d copy.c
deleted
100644 → 0
+
0
−
697
View file @
11f78187
This diff is collapsed.
Click to expand it.
utils/syn2d.c
+
3
−
3
View file @
2614c3ce
...
...
@@ -620,7 +620,7 @@ void synthesis(float *shotdata, float *syndata, int nx, int nt, int nxs, int nts
cdata
=
(
complex
*
)
malloc
(
nfreq
*
sizeof
(
complex
));
#pragma omp for
for
(
i
=
0
;
i
<
nx
;
i
++
)
{
#pragma omp critical
//
#pragma omp critical
{
rc1fft
(
&
shotdata
[
i
*
optn
],
cdata
,
optn
,
-
1
);
}
...
...
@@ -711,7 +711,7 @@ void synthesis(float *shotdata, float *syndata, int nx, int nt, int nxs, int nts
sum
[
j
].
i
=
tmp
.
i
*
ts
.
r
-
tmp
.
r
*
ts
.
i
;
}
}
#pragma omp critical
//
#pragma omp critical
{
cr1fft
(
sum
,
rdata
,
optn
,
1
);
}
...
...
@@ -734,7 +734,7 @@ void synthesis(float *shotdata, float *syndata, int nx, int nt, int nxs, int nts
sum
[
j
].
i
=
shotcdata
[
j
*
nx
+
i
].
i
*
tmp
.
r
-
shotcdata
[
j
*
nx
+
i
].
r
*
tmp
.
i
;
}
#pragma omp critical
//
#pragma omp critical
{
cr1fft
(
sum
,
rdata
,
optn
,
1
);
}
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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