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
E
easyWave
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
0
Merge Requests
0
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
geoperil
easyWave
Commits
6d88cc91
Commit
6d88cc91
authored
Oct 16, 2013
by
Johannes Spazier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied ZTOP-patch.
parent
5acb5fe2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
cpu/trunk/easywave.h
cpu/trunk/easywave.h
+3
-0
cpu/trunk/ewSource.cpp
cpu/trunk/ewSource.cpp
+26
-0
No files found.
cpu/trunk/easywave.h
View file @
6d88cc91
...
@@ -88,4 +88,7 @@ int ewDumpPOIsCompact( int istage );
...
@@ -88,4 +88,7 @@ int ewDumpPOIsCompact( int istage );
extern
CNode
*
gNode
;
extern
CNode
*
gNode
;
/* unset to remove ZTOP_PATCH */
#define ZTOP_PATCH
#endif
/* EASYWAVE_H */
#endif
/* EASYWAVE_H */
cpu/trunk/ewSource.cpp
View file @
6d88cc91
...
@@ -49,6 +49,31 @@ int ewSource()
...
@@ -49,6 +49,31 @@ int ewSource()
ierr
=
eq
.
read
(
Par
.
fileSource
);
if
(
ierr
)
return
ierr
;
ierr
=
eq
.
read
(
Par
.
fileSource
);
if
(
ierr
)
return
ierr
;
#ifdef ZTOP_PATCH
// check fault parameters
Err
.
disable
();
ierr
=
eq
.
finalizeInput
();
while
(
ierr
)
{
i
=
ierr
/
10
;
ierr
=
ierr
-
10
*
i
;
if
(
ierr
==
FLT_ERR_STRIKE
)
{
Log
.
print
(
"No strike on input: Employing effective symmetric source model"
);
if
(
eq
.
nfault
>
1
)
{
Err
.
enable
();
return
Err
.
post
(
"Symmetric source assumes only 1 fault"
);
}
eq
.
fault
[
0
].
strike
=
0.
;
effSymSource
=
1
;
}
else
if
(
ierr
==
FLT_ERR_ZTOP
)
{
Log
.
print
(
"Automatic depth correction to fault top @ 10 km"
);
eq
.
fault
[
i
].
depth
=
eq
.
fault
[
i
].
width
/
2
*
sindeg
(
eq
.
fault
[
i
].
dip
)
+
10.e3
;
}
else
{
Err
.
enable
();
return
ierr
;
}
ierr
=
eq
.
finalizeInput
();
}
Err
.
enable
();
#else
// check fault parameters
// check fault parameters
Err
.
disable
();
Err
.
disable
();
ierr
=
eq
.
finalizeInput
();
ierr
=
eq
.
finalizeInput
();
...
@@ -68,6 +93,7 @@ int ewSource()
...
@@ -68,6 +93,7 @@ int ewSource()
ierr
=
eq
.
finalizeInput
();
if
(
ierr
)
return
ierr
;
ierr
=
eq
.
finalizeInput
();
if
(
ierr
)
return
ierr
;
}
}
Err
.
enable
();
Err
.
enable
();
#endif
// calculate uplift on a rectangular grid
// calculate uplift on a rectangular grid
// set grid resolution, grid dimensions will be set automatically
// set grid resolution, grid dimensions will be set automatically
...
...
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