Skip to content

Commit

Permalink
Merge pull request #297 from trontrytel/sqr
Browse files Browse the repository at this point in the history
fixing cone shape for rotating cone test
  • Loading branch information
slayoo committed Mar 31, 2015
2 parents 31b4d01 + 7c1a3b3 commit 67db5b8
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
Binary file modified tests/paper_2015_GMD/3_rotating_cone_2d/refdata/log-orig.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions tests/paper_2015_GMD/3_rotating_cone_2d/rotating_cone_2d.cpp
Expand Up @@ -72,7 +72,7 @@ void test(const std::string filename)
}
p.gnuplot_view = "map";
p.gnuplot_with = "lines";
p.gnuplot_surface = false;
p.gnuplot_surface = false;
p.gnuplot_contour = true;
{
std::ostringstream tmp;
Expand Down Expand Up @@ -136,9 +136,9 @@ void test(const std::string filename)

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

// constant-angular-velocity rotational field
Expand Down

0 comments on commit 67db5b8

Please sign in to comment.