aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-01-27 10:48:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-01-27 10:48:00 +0000
commit72e97f68a3897e40bd075577e0d4d36ab3f12cfa (patch)
treea43f46854040cb8a92b630fe4f8f4819b92527c6 /Carpet
parentff45e76f759e8e6d666e5867654fb148ab8ad7c2 (diff)
Carpet: replace ||, && by or, and
darcs-hash:20050127104816-891bb-eab3de7f568de2ada1816394f47e0c769c6f4663.gz
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/Carpet/src/Storage.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/Carpet/Carpet/src/Storage.cc b/Carpet/Carpet/src/Storage.cc
index d913589cc..79f9d3f30 100644
--- a/Carpet/Carpet/src/Storage.cc
+++ b/Carpet/Carpet/src/Storage.cc
@@ -28,7 +28,7 @@ namespace Carpet {
// wait until all refinement levels have been disabled.
const int group = CCTK_GroupIndex(groupname);
- assert (group>=0 && group<CCTK_NumGroups());
+ assert (group>=0 and group<CCTK_NumGroups());
if (CCTK_NumVarsInGroupI(group)==0) return 0;
@@ -36,9 +36,9 @@ namespace Carpet {
// No storage change in local mode
if (grouptype == CCTK_GF) {
- assert ((map == -1 || maps == 1)
- && (component == -1
- || vhh.at(0)->local_components(reflevel) == 1));
+ assert ((map == -1 or maps == 1)
+ and (component == -1
+ or vhh.at(0)->local_components(reflevel) == 1));
}
if (CCTK_QueryGroupStorageI(cgh, group)) {
@@ -81,7 +81,7 @@ namespace Carpet {
const int vectorlength = gp.vectorgroup ? gp.vectorlength : 1;
assert (arrdata.at(group).at(0).data.size()==0
- || arrdata.at(group).at(0).data.at(0) == 0);
+ or arrdata.at(group).at(0).data.at(0) == 0);
for (int m=0; m<(int)arrdata.at(group).size(); ++m) {
for (int var=0; var<CCTK_NumVarsInGroupI(group); ++var) {
const int vectorindex = gp.vectorgroup ? var % vectorlength : 0;
@@ -130,10 +130,10 @@ namespace Carpet {
Checkpoint ("DisableGroupStorage \"%s\"", groupname);
const int group = CCTK_GroupIndex(groupname);
- assert (group>=0 && group<CCTK_NumGroups());
+ assert (group>=0 and group<CCTK_NumGroups());
// No storage change in local mode
- assert (! (component!=-1 && CCTK_GroupTypeI(group)==CCTK_GF));
+ assert (! (component!=-1 and CCTK_GroupTypeI(group)==CCTK_GF));
if (! CCTK_QueryGroupStorageI(cgh, group)) {
// storage was disabled previously
@@ -186,12 +186,12 @@ namespace Carpet {
if (groupname) {
group = CCTK_GroupIndex(groupname);
}
- assert (group>=0 && group<CCTK_NumGroups());
+ assert (group>=0 and group<CCTK_NumGroups());
if (CCTK_NumVarsInGroupI(group)==0) return 0;
const int n = CCTK_FirstVarIndexI(group);
- assert (n>=0 && n<CCTK_NumVars());
+ assert (n>=0 and n<CCTK_NumVars());
const int var = 0;
return arrdata.at(group).at(0).data.at(var) != NULL;
@@ -208,19 +208,19 @@ namespace Carpet {
if (groupname) {
group = CCTK_GroupIndex(groupname);
}
- assert (group>=0 && group<CCTK_NumGroups());
+ assert (group>=0 and group<CCTK_NumGroups());
if (mglevel == -1) {
return &error; // meta mode
}
const int gptype = CCTK_GroupTypeI (group);
- if (gptype == CCTK_GF && map == -1) {
+ if (gptype == CCTK_GF and map == -1) {
return &error; // global or level mode for a GF
}
const int gpdim = groupdata.at(group).info.dim;
- assert (dir>=0 && dir<gpdim);
+ assert (dir>=0 and dir<gpdim);
if (CCTK_QueryGroupStorageI(cgh, group)) {
@@ -238,7 +238,7 @@ namespace Carpet {
int GroupDynamicData (const cGH* cgh, int group, cGroupDynamicData* data)
{
- assert (group>=0 && group<CCTK_NumGroups());
+ assert (group>=0 and group<CCTK_NumGroups());
*data = groupdata.at(group).info;
return 0;
}