Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleaned diagnostics #10

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions Source/Core/Diagnostics.impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ void Diagnostics<method_t, matter_t>::normalise_constraints(
Real Mom2 = diagnostic_vars_box(iv, c_Mom2);
Real Mom3 = diagnostic_vars_box(iv, c_Mom3);
Real Mom = diagnostic_vars_box(iv, c_Mom);
// Real Mom = sqrt(Mom1 * Mom1 + Mom2 * Mom2 + Mom3 * Mom3);

Real Mom1_abs = diagnostic_vars_box(iv, c_Mom1_abs);
Real Mom2_abs = diagnostic_vars_box(iv, c_Mom2_abs);
Expand All @@ -177,6 +176,7 @@ void Diagnostics<method_t, matter_t>::normalise_constraints(
diagnostic_vars_box(iv, c_Ham_norm) = abs(Ham / Ham_abs);
diagnostic_vars_box(iv, c_Mom_norm) = abs(Mom / Mom_abs);

// This sets the error norms at the boundary cells to zero
IntVect lo = IntVect::Zero;
IntVect hi = nCells - IntVect::Unit;
if (iv[0] == lo[0] || iv[1] == lo[1] || iv[2] == lo[2] ||
Expand All @@ -185,11 +185,6 @@ void Diagnostics<method_t, matter_t>::normalise_constraints(
diagnostic_vars_box(iv, c_Ham_norm) = 0;
diagnostic_vars_box(iv, c_Mom_norm) = 0;
}

if (diagnostic_vars_box(iv, c_Ham_norm) < -0.5)
{
pout() << iv << endl;
}
}
}
}
Expand Down
Loading