Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GPIAG-Software
IFOS2D
Commits
aeebd624
Commit
aeebd624
authored
Sep 02, 2016
by
niklas.thiel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUGFIX: LNORM=7 & time windowing
parent
2fd52e22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/calc_misfit.c
src/calc_misfit.c
+4
-2
src/calc_res.c
src/calc_res.c
+4
-2
No files found.
src/calc_misfit.c
View file @
aeebd624
...
...
@@ -180,8 +180,10 @@ double calc_misfit(float **sectiondata, float **section, int ntr, int ns, int LN
abs_sectiondata
+=
intseis_sectiondata
[
i
][
j
]
*
intseis_sectiondata
[
i
][
j
];
abs_section
+=
intseis_section
[
i
][
j
]
*
intseis_section
[
i
][
j
];
}
abs_sectiondata
=
sqrt
(
abs_sectiondata
);
abs_section
=
sqrt
(
abs_section
);
if
(
abs_sectiondata
==
0
)
abs_sectiondata
=
1
;
else
abs_sectiondata
=
sqrt
(
abs_sectiondata
);
if
(
abs_section
==
0
)
abs_section
==
1
;
else
abs_section
=
sqrt
(
abs_section
);
}
/* calculate L2 residuals */
...
...
src/calc_res.c
View file @
aeebd624
...
...
@@ -207,8 +207,10 @@ double calc_res(float **sectiondata, float **section, float **sectiondiff, float
abs_section
+=
intseis_section
[
i
][
j
]
*
intseis_section
[
i
][
j
];
sectiondata_mult_section
+=
intseis_sectiondata
[
i
][
j
]
*
intseis_section
[
i
][
j
];
/* calculation of dot product for measured (section) and synthetic (sectiondata) data*/
}
abs_sectiondata
=
sqrt
(
abs_sectiondata
);
abs_section
=
sqrt
(
abs_section
);
if
(
abs_sectiondata
==
0
)
abs_sectiondata
=
1
;
else
abs_sectiondata
=
sqrt
(
abs_sectiondata
);
if
(
abs_section
==
0
)
abs_section
==
1
;
else
abs_section
=
sqrt
(
abs_section
);
}
/* calculate residual seismograms and norm */
...
...
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