Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
IFOS2D
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
GPIAG-Software
IFOS2D
Commits
a3da04c0
Commit
a3da04c0
authored
Jul 25, 2016
by
niklas.thiel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUGFIX calculating receiver positions
parent
2e14b8db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/receiver.c
src/receiver.c
+1
-2
No files found.
src/receiver.c
View file @
a3da04c0
...
...
@@ -114,7 +114,6 @@ int **receiver(int *ntr, float **srcpos, int shotno){
nxrec2
=
iround
(
XREC1
/
DH
);
/* in gridpoints */
nyrec2
=
iround
(
YREC1
/
DH
);
offset
=
iround
((
XREC2
-
srcpos
[
1
][
1
])
/
DH
);
shotdist
=
iround
((
srcpos
[
1
][
2
]
-
srcpos
[
1
][
1
])
/
DH
);
}
if
(
nyrec1
!=
nyrec2
){
fprintf
(
FP
,
"
\n\n
"
);
...
...
@@ -126,7 +125,7 @@ int **receiver(int *ntr, float **srcpos, int shotno){
if
(
offset
<
0
)
recdist
=-
NGEOPH
;
else
recdist
=
NGEOPH
;
*
ntr
=
iround
((
nxrec2
-
nxrec1
)
/
recdist
)
+
1
;
if
(
shotno
>
0
)
nxrec1
=
nxrec1
+
(
shotdist
*
(
shotno
-
1
)
);
if
(
shotno
>
0
)
nxrec1
=
nxrec1
+
(
(
srcpos
[
1
][
shotno
]
-
srcpos
[
1
][
1
])
/
DH
);
recpos
=
imatrix
(
1
,
3
,
1
,
*
ntr
);
n
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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