aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Storage.cc
diff options
context:
space:
mode:
authorcott <schnetter@cct.lsu.edu>2006-08-01 22:59:00 +0000
committercott <schnetter@cct.lsu.edu>2006-08-01 22:59:00 +0000
commit7e6f5550f88951a1f7d5a15b7fd77af6b1a27f64 (patch)
tree83a399ce717cee7a78a396a01579a1d056e9374c /Carpet/Carpet/src/Storage.cc
parent2f54810c8c9450e7c4d7e00f6beb97759f20c179 (diff)
storage_verbose
By default turn off storage information output when using carpet::veryverbose = yes. carpet::storage_verbose = yes yields the old behavior. darcs-hash:20060801225947-34d71-b65e1db580c142d74855219a58206285007f42e4.gz
Diffstat (limited to 'Carpet/Carpet/src/Storage.cc')
-rw-r--r--Carpet/Carpet/src/Storage.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/Storage.cc b/Carpet/Carpet/src/Storage.cc
index de861cd98..8643ebf0f 100644
--- a/Carpet/Carpet/src/Storage.cc
+++ b/Carpet/Carpet/src/Storage.cc
@@ -63,6 +63,7 @@ namespace Carpet {
for (int n=0; n<n_groups; ++n) {
int const group = groups[n];
+ if(storage_verbose)
{
char * const groupname = CCTK_GroupName (group);
assert (groupname);
@@ -209,7 +210,11 @@ namespace Carpet {
GroupStorageIncrease (const cGH* cgh, int n_groups, const int* groups,
const int* timelevels, int* status)
{
- Checkpoint ("GroupStorageIncrease");
+ DECLARE_CCTK_PARAMETERS
+
+ if(storage_verbose) {
+ Checkpoint ("GroupStorageIncrease");
+ }
return
GroupStorageCrease (cgh, n_groups, groups, timelevels, status, true);
}
@@ -220,7 +225,11 @@ namespace Carpet {
GroupStorageDecrease (const cGH* cgh, int n_groups, const int* groups,
const int* timelevels, int* status)
{
- Checkpoint ("GroupStorageDecrease");
+ DECLARE_CCTK_PARAMETERS
+
+ if(storage_verbose) {
+ Checkpoint ("GroupStorageDecrease");
+ }
return
GroupStorageCrease (cgh, n_groups, groups, timelevels, status, false);
}