aboutsummaryrefslogtreecommitdiff
path: root/src/driver/mask.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/mask.cc')
-rw-r--r--src/driver/mask.cc23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/driver/mask.cc b/src/driver/mask.cc
index 19ce183..ce7ebf1 100644
--- a/src/driver/mask.cc
+++ b/src/driver/mask.cc
@@ -21,6 +21,7 @@
#include "util_Table.h"
#include "cctk.h"
#include "cctk_Arguments.h"
+#include "cctk_Parameters.h"
#include "SpaceMask.h" // from thorn SpaceMask
@@ -30,6 +31,7 @@
#include "../jtutil/array.hh"
#include "../jtutil/cpm_map.hh"
#include "../jtutil/linear_map.hh"
+using jtutil::error_exit;
#include "../patch/coords.hh"
#include "../patch/grid.hh"
@@ -55,7 +57,6 @@
// all the code in this file is inside this namespace
namespace AHFinderDirect
{
-using jtutil::error_exit;
//******************************************************************************
@@ -170,6 +171,7 @@ extern "C"
void AHFinderDirect_maybe_do_masks(CCTK_ARGUMENTS)
{
DECLARE_CCTK_ARGUMENTS
+DECLARE_CCTK_PARAMETERS
const struct verbose_info& verbose_info = state.verbose_info;
struct mask_info& mask_info = state.mask_info;
@@ -377,23 +379,20 @@ if (verbose_info.print_algorithm_highlights)
}
}
-if (verbose_info.print_algorithm_details)
+if (verbose_info.print_algorithm_debug)
then {
CCTK_VInfo(CCTK_THORNSTRING,
- " this grid has x=[%g,%g] Delta_x=%g",
+ " grid on this processor has x=[%g,%g]",
double(mgi.global_xyz_of_ijk(X_AXIS, 0)),
- double(mgi.global_xyz_of_ijk(X_AXIS, mgi.proc_gridfn_dims[X_AXIS]-1)),
- double(mgi.coord_delta[X_AXIS]));
+ double(mgi.global_xyz_of_ijk(X_AXIS, mgi.proc_gridfn_dims[X_AXIS]-1)));
CCTK_VInfo(CCTK_THORNSTRING,
- " y=[%g,%g] Delta_y=%g",
+ " y=[%g,%g]",
double(mgi.global_xyz_of_ijk(Y_AXIS, 0)),
- double(mgi.global_xyz_of_ijk(Y_AXIS, mgi.proc_gridfn_dims[Y_AXIS]-1)),
- double(mgi.coord_delta[Y_AXIS]));
+ double(mgi.global_xyz_of_ijk(Y_AXIS, mgi.proc_gridfn_dims[Y_AXIS]-1)));
CCTK_VInfo(CCTK_THORNSTRING,
- " z=[%g,%g] Delta_z=%g",
+ " z=[%g,%g]",
double(mgi.global_xyz_of_ijk(Z_AXIS, 0)),
- double(mgi.global_xyz_of_ijk(Z_AXIS, mgi.proc_gridfn_dims[Z_AXIS]-1)),
- double(mgi.coord_delta[Z_AXIS]));
+ double(mgi.global_xyz_of_ijk(Z_AXIS, mgi.proc_gridfn_dims[Z_AXIS]-1)));
}
@@ -659,7 +658,7 @@ long buffer_count = 0;
//
// FIXME:
// it would be more efficient here to compute the
- // radia of a whole batch of points at once
+ // radii of a whole batch of points at once
const fp r_horizon = ps.radius_in_local_xyz_direction
(gfns::gfn__h,
local_x, local_y, local_z);