Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 84c3ab3b authored by frey_m's avatar frey_m
Browse files

AMR_MG: Update open BC

parent 80289236
No related branches found
No related tags found
1 merge request!33Master
...@@ -54,12 +54,14 @@ void AmrOpenBoundary<Level>::apply(const AmrIntVect_t& iv, ...@@ -54,12 +54,14 @@ void AmrOpenBoundary<Level>::apply(const AmrIntVect_t& iv,
} }
// cell size in direction // cell size in direction
scalar_t h = 1.0 / scalar_t(nr[dir]); scalar_t h = mglevel->cellSize(dir);
scalar_t r = 0.718; // + 0.5 * h; //0.358; scalar_t r = 1.475625 - 0.5 * h; //0.358;
// 1st order // 1st order
// map[mglevel->serialize(niv)] += 2.0 * r / (2.0 * r + h) * value; // map[mglevel->serialize(niv)] += 2.0 * r / (2.0 * r + h) * value;
map[mglevel->serialize(niv)] += (1.0 - h / r) * value; map[mglevel->serialize(niv)] -= 2.0 * h / r * value;
map[mglevel->serialize(n2iv)] += value;
// map[mglevel->serialize(niv)] += (1.0 - h / r) * value;
} }
#endif #endif
...@@ -54,12 +54,12 @@ void AmrOpenBoundary<Level>::apply(const AmrIntVect_t& iv, ...@@ -54,12 +54,12 @@ void AmrOpenBoundary<Level>::apply(const AmrIntVect_t& iv,
} }
// cell size in direction // cell size in direction
scalar_t h = 1.0 / scalar_t(nr[dir]); scalar_t h = mglevel->cellSize(dir);
scalar_t r = 0.718; // + 0.5 * h; //0.358; scalar_t r = 1.475625 - 0.5 * h;
// 1st order // 1st order
// map[mglevel->serialize(niv)] += 2.0 * r / (2.0 * r + h) * value; map[mglevel->serialize(niv)] -= 2.0 * h / r * value;
map[mglevel->serialize(niv)] += (1.0 - h / r) * value; map[mglevel->serialize(n2iv)] += value;
} }
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment