Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
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
b50b9874
Commit
b50b9874
authored
Aug 12, 2020
by
Jannis Teunissen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 1D multigrid ghost cell scheme near refinement boundaries
parent
047e5297
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/m_af_multigrid.f90
src/m_af_multigrid.f90
+6
-7
No files found.
src/m_af_multigrid.f90
View file @
b50b9874
...
...
@@ -261,7 +261,6 @@ contains
#if NDIM == 1
real
(
dp
)
::
tmp
real
(
dp
)
::
gc
real
(
dp
),
parameter
::
third
=
1
/
3.0_dp
#elif NDIM == 2
integer
::
dj
real
(
dp
)
::
tmp
(
0
:
boxes
(
id
)
%
n_cell
/
2+1
)
...
...
@@ -354,7 +353,9 @@ contains
case
(
1
)
i
=
ix
di
=
dix
boxes
(
id
)
%
cc
(
i
-
di
,
iv
)
=
(
2
*
gc
+
boxes
(
id
)
%
cc
(
i
,
iv
))
*
third
boxes
(
id
)
%
cc
(
i
-
di
,
iv
)
=
0.5_dp
*
gc
&
+
0.75_dp
*
boxes
(
id
)
%
cc
(
i
,
iv
)
&
-
0.25_dp
*
boxes
(
id
)
%
cc
(
i
+
di
,
iv
)
#elif NDIM == 2
case
(
1
)
i
=
ix
...
...
@@ -431,9 +432,6 @@ contains
integer
,
intent
(
in
)
::
nb
!< Ghost cell direction
integer
,
intent
(
in
)
::
iv
!< Ghost cell variable
integer
::
nc
,
ix
,
dix
,
IJK
,
di
#if NDIM == 1
real
(
dp
),
parameter
::
third
=
1
/
3.0_dp
#endif
#if NDIM > 1
integer
::
dj
#endif
...
...
@@ -458,8 +456,9 @@ contains
case
(
1
)
i
=
ix
di
=
dix
boxes
(
id
)
%
cc
(
i
-
di
,
iv
)
=
(
2
*
boxes
(
id
)
%
cc
(
i
-
di
,
iv
)
+
&
boxes
(
id
)
%
cc
(
i
,
iv
))
*
third
boxes
(
id
)
%
cc
(
i
-
di
,
iv
)
=
0.5_dp
*
boxes
(
id
)
%
cc
(
i
-
di
,
iv
)
&
+
0.75_dp
*
boxes
(
id
)
%
cc
(
i
,
iv
)
&
-
0.25_dp
*
boxes
(
id
)
%
cc
(
i
+
di
,
iv
)
#elif NDIM == 2
case
(
1
)
i
=
ix
...
...
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