Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
A
afivo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MD-CWI-NL
afivo
Commits
dd4bafe1
Commit
dd4bafe1
authored
Oct 15, 2020
by
Jannis Teunissen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add simple check for lsf sign switch on coarse grid
parent
47abaa60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
src/m_af_multigrid.f90
src/m_af_multigrid.f90
+28
-0
No files found.
src/m_af_multigrid.f90
View file @
dd4bafe1
...
...
@@ -88,6 +88,10 @@ contains
if
(
.not.
associated
(
mg
%
box_corr
))
mg
%
box_corr
=>
mg_auto_corr
if
(
.not.
associated
(
mg
%
box_rstr
))
mg
%
box_rstr
=>
mg_auto_rstr
if
(
mg
%
i_lsf
/
=
-1
)
then
call
check_coarse_representation_lsf
(
tree
,
mg
)
end
if
call
mg_set_box_tag_lvl
(
tree
,
mg
,
1
)
call
coarse_solver_initialize
(
tree
,
mg
)
...
...
@@ -2026,4 +2030,28 @@ contains
call
mg_stencil_handle_boundaries
(
box
,
mg
,
stencil
,
bc_to_rhs
)
end
subroutine
mg_box_lpllsf_stencil
subroutine
check_coarse_representation_lsf
(
tree
,
mg
)
type
(
af_t
),
intent
(
in
)
::
tree
type
(
mg_t
),
intent
(
in
)
::
mg
integer
::
i
,
id
,
nc
real
(
dp
)
::
max_lsf
,
min_lsf
nc
=
tree
%
n_cell
max_lsf
=
-1e100_dp
min_lsf
=
1e100_dp
do
i
=
1
,
size
(
tree
%
lvls
(
1
)
%
ids
)
id
=
tree
%
lvls
(
1
)
%
ids
(
i
)
max_lsf
=
max
(
max_lsf
,
&
maxval
(
tree
%
boxes
(
id
)
%
cc
(
DTIMES
(
1
:
nc
),
mg
%
i_lsf
)))
min_lsf
=
min
(
min_lsf
,
&
minval
(
tree
%
boxes
(
id
)
%
cc
(
DTIMES
(
1
:
nc
),
mg
%
i_lsf
)))
end
do
if
(
max_lsf
*
min_lsf
>=
0
)
then
print
*
,
"Make the coarse grid finer?"
error stop
"Level set function does not change sign on coarse grid"
end
if
end
subroutine
check_coarse_representation_lsf
end
module
m_af_multigrid
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