Skip to content

Commit 67db5b8

Browse files
committed
Merge pull request #297 from trontrytel/sqr
fixing cone shape for rotating cone test
2 parents 31b4d01 + 7c1a3b3 commit 67db5b8

File tree

7 files changed

+4
-4
lines changed

7 files changed

+4
-4
lines changed
6.35 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

tests/paper_2015_GMD/3_rotating_cone_2d/rotating_cone_2d.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void test(const std::string filename)
7272
}
7373
p.gnuplot_view = "map";
7474
p.gnuplot_with = "lines";
75-
p.gnuplot_surface = false;
75+
p.gnuplot_surface = false;
7676
p.gnuplot_contour = true;
7777
{
7878
std::ostringstream tmp;
@@ -136,9 +136,9 @@ void test(const std::string filename)
136136

137137
// ... cut off at zero
138138
run.advectee() = h0 + where(
139-
tmp - pow(r, 2) <= 0, //if
140-
h * blitz::sqr(1 - tmp / pow(r, 2)), //then
141-
0. //else
139+
tmp - pow(r, 2) <= 0, // if
140+
h - blitz::sqrt(tmp / pow(r/h,2)), // then
141+
0. // else
142142
);
143143

144144
// constant-angular-velocity rotational field

0 commit comments

Comments
 (0)