aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-09-20 16:15:34 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-09-20 16:15:34 +0000
commitd8a5933a16b9548f72446005e6206d76466082fc (patch)
tree735a7d56687e059c1e64c706fe1ed48310340a6f
parent5cb8695c7dca4a625f9923753fbd307cba4479f8 (diff)
when we have a default argument to a C++ function, only give the
default in the .hh file -- in the .cc file you're not supposed to repeat it (it's now in /* comments /), eg // foo.hh void foo(int x, int y = 0); // foo.cc #include "foo.hh" void foo(int x, int y /* = 0 */) { // ... } git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@763 f88db872-0e4f-0410-b76b-b9085cfa78c5
-rw-r--r--src/driver/io.cc8
-rw-r--r--src/patch/ghost_zone.cc12
-rw-r--r--src/patch/patch.cc2
3 files changed, 11 insertions, 11 deletions
diff --git a/src/driver/io.cc b/src/driver/io.cc
index 754c8a9..716d331 100644
--- a/src/driver/io.cc
+++ b/src/driver/io.cc
@@ -64,7 +64,7 @@ const char* io_file_name(struct IO_info& IO_info, const char base_file_name[],
//
void input_gridfn(patch_system& ps, int unknown_gfn,
struct IO_info& IO_info, const char base_file_name[],
- int hn, bool print_msg_flag, int AHF_iteration = 0)
+ int hn, bool print_msg_flag, int AHF_iteration /* = 0 */)
{
const char* file_name = io_file_name(IO_info, base_file_name,
hn, AHF_iteration);
@@ -112,7 +112,7 @@ default:
//
void output_gridfn(patch_system& ps, int unknown_gfn,
struct IO_info& IO_info, const char base_file_name[],
- int hn, bool print_msg_flag, int AHF_iteration = 0)
+ int hn, bool print_msg_flag, int AHF_iteration /* = 0 */)
{
const char* file_name = io_file_name(IO_info, base_file_name,
hn, AHF_iteration);
@@ -179,7 +179,7 @@ default:
void print_Jacobians(const patch_system& ps,
const Jacobian* Jac_NP, const Jacobian* Jac_SD_FDdr,
struct IO_info& IO_info, const char base_file_name[],
- int hn, bool print_msg_flag, int AHF_iteration = 0)
+ int hn, bool print_msg_flag, int AHF_iteration /* = 0 */)
{
if (Jac_NP == NULL)
then {
@@ -311,7 +311,7 @@ fclose(fileptr);
//
namespace {
const char* io_file_name(struct IO_info& IO_info, const char base_file_name[],
- int hn, int AHF_iteration = 0)
+ int hn, int AHF_iteration /* = 0 */)
{
const int N_file_name_buffer = 200;
static char file_name_buffer[N_file_name_buffer];
diff --git a/src/patch/ghost_zone.cc b/src/patch/ghost_zone.cc
index 747cdb0..f8ffa68 100644
--- a/src/patch/ghost_zone.cc
+++ b/src/patch/ghost_zone.cc
@@ -160,8 +160,8 @@ delete iperp_map_;
// we want.
//
void symmetry_ghost_zone::synchronize(int ghosted_min_gfn, int ghosted_max_gfn,
- bool want_corners = true,
- bool want_noncorner = true)
+ bool want_corners /* = true */,
+ bool want_noncorner /* = true */)
{
for (int gfn = ghosted_min_gfn ; gfn <= ghosted_max_gfn ; ++gfn)
{
@@ -547,8 +547,8 @@ assert( my_patch() == other_patch()
//
void interpatch_ghost_zone::synchronize
(int ghosted_min_gfn, int ghosted_max_gfn,
- bool want_corners = true,
- bool want_noncorner = true)
+ bool want_corners /* = true */,
+ bool want_noncorner /* = true */)
{
// make sure the caller wants the entire ghost zone
if (! (want_corners && want_noncorner))
@@ -597,8 +597,8 @@ other_patch_interp_->interpolate(ghosted_min_gfn, ghosted_max_gfn,
//
void interpatch_ghost_zone::compute_Jacobian
(int ghosted_min_gfn, int ghosted_max_gfn,
- bool want_corners = true,
- bool want_noncorner = true)
+ bool want_corners /* = true */,
+ bool want_noncorner /* = true */)
const
{
// make sure the caller wants the entire ghost zone
diff --git a/src/patch/patch.cc b/src/patch/patch.cc
index 4261bc7..48b3a18 100644
--- a/src/patch/patch.cc
+++ b/src/patch/patch.cc
@@ -603,7 +603,7 @@ ghost_zone_ptr_to_set = gzp;
// same grid spacing in the perpendicular direction.
//
const patch_edge& patch::edge_adjacent_to_patch(const patch& q,
- int N_overlap_points = 0)
+ int N_overlap_points /* = 0 */)
const
{
const patch& p = *this;