Skip to content

Commit

Permalink
clang-format pre-push hook
Browse files Browse the repository at this point in the history
  • Loading branch information
StasJ committed Jan 7, 2022
1 parent 9f1ce45 commit 9575f2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/vaporgui/PDimensionSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ void PDimensionSelector::dropdownTextChanged(std::string text)
rp->GetBox()->SetOrientation(VAPoR::Box::XYZ);
}
rp->SetDefaultVariables(dim, true);

if (!rp->GetBox()->IsPlanar()) {
vector<double> min, max;
rp->GetBox()->GetExtents(min, max);
float minZ = min[2];
float maxZ = max[2];
float epsilon = std::max(abs(minZ), abs(maxZ))*__FLT_EPSILON__;
if (abs(maxZ-minZ) <= epsilon) {
float epsilon = std::max(abs(minZ), abs(maxZ)) * __FLT_EPSILON__;
if (abs(maxZ - minZ) <= epsilon) {
vector<double> dmin, dmax;
size_t ts = rp->GetCurrentTimestep();
int level = rp->GetRefinementLevel();
Expand Down

0 comments on commit 9575f2b

Please sign in to comment.