diff options
author | hawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2003-07-24 13:11:59 +0000 |
---|---|---|
committer | hawke <hawke@578cdeb0-5ea1-4b81-8215-5a3b8777ee0b> | 2003-07-24 13:11:59 +0000 |
commit | b18926e6de794bb786988f3f61b2943ffbd6da1a (patch) | |
tree | 3bfaebc25c4398b5ea2ae2a056cb0ab72bdce0f2 /src/ChangeType.c | |
parent | 3b7f68b36f2f2ffd862234b6c5b9e70a37953f42 (diff) |
Formatting changes only.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/MoL/trunk@32 578cdeb0-5ea1-4b81-8215-5a3b8777ee0b
Diffstat (limited to 'src/ChangeType.c')
-rw-r--r-- | src/ChangeType.c | 58 |
1 files changed, 42 insertions, 16 deletions
diff --git a/src/ChangeType.c b/src/ChangeType.c index 2f1d926..98b9ab9 100644 --- a/src/ChangeType.c +++ b/src/ChangeType.c @@ -121,17 +121,23 @@ CCTK_INT MoL_ChangeToEvolved(CCTK_INT EvolvedIndex, CCTK_INT RHSIndex) timelevs = CCTK_MaxTimeLevelsVI(EvolvedIndex); if (timelevs < 1) { - CCTK_VWarn(1,__LINE__,__FILE__,"MoL","Warning whilst trying to change variable index %i to evolved.", EvolvedIndex); + CCTK_VWarn(1,__LINE__,__FILE__,"MoL", + "Warning whilst trying to change variable " + "index %i to evolved.", EvolvedIndex); CCTK_WARN(0, "The index passed does not correspond to a GF."); } else if (timelevs == 1) { - CCTK_VWarn(1,__LINE__,__FILE__,"MoL","Warning whilst trying to change variable index %i to evolved.", EvolvedIndex); + CCTK_VWarn(1,__LINE__,__FILE__,"MoL", + "Warning whilst trying to change variable " + "index %i to evolved.", EvolvedIndex); CCTK_WARN(0, "The index passed only has a single timelevel."); } timelevs = CCTK_MaxTimeLevelsVI(RHSIndex); if (timelevs < 1) { - CCTK_VWarn(1,__LINE__,__FILE__,"MoL","Warning whilst trying to change variable index %i to evolved (RHS GF).", RHSIndex); + CCTK_VWarn(1,__LINE__,__FILE__,"MoL", + "Warning whilst trying to change variable " + "index %i to evolved (RHS GF).", RHSIndex); CCTK_WARN(0, "The index passed does not correspond to a GF."); } EvolvedVariableIndex[MoLNumEvolvedVariables] = EvolvedIndex; @@ -157,10 +163,13 @@ CCTK_INT MoL_ChangeToEvolved(CCTK_INT EvolvedIndex, CCTK_INT RHSIndex) { timelevs = CCTK_MaxTimeLevelsVI(RHSIndex); if (timelevs < 1) { - CCTK_VWarn(1,__LINE__,__FILE__,"MoL","Warning whilst trying to change variable index %i to evolved type from constrained.", RHSIndex); + CCTK_VWarn(1,__LINE__,__FILE__,"MoL", + "Warning whilst trying to change variable " + "index %i to evolved type from constrained.", RHSIndex); CCTK_WARN(0, "The RHS index passed does not correspond to a GF."); } - for (index = usedindex; index < MoLNumConstrainedVariables - 1; index++) + for (index = usedindex; index < MoLNumConstrainedVariables - 1; + index++) { ConstrainedVariableIndex[index] = ConstrainedVariableIndex[index+1]; } @@ -181,7 +190,10 @@ CCTK_INT MoL_ChangeToEvolved(CCTK_INT EvolvedIndex, CCTK_INT RHSIndex) { timelevs = CCTK_MaxTimeLevelsVI(RHSIndex); if (timelevs < 1) { - CCTK_VWarn(1,__LINE__,__FILE__,"MoL","Warning whilst trying to change variable index %i to evolved type from save and restore.", RHSIndex); + CCTK_VWarn(1,__LINE__,__FILE__,"MoL", + "Warning whilst trying to change variable " + "index %i to evolved type from save and " + "restore.", RHSIndex); CCTK_WARN(0, "The RHS index passed does not correspond to a GF."); } for (index = usedindex; index < MoLNumSandRVariables - 1; index++) @@ -203,7 +215,8 @@ CCTK_INT MoL_ChangeToEvolved(CCTK_INT EvolvedIndex, CCTK_INT RHSIndex) default: { - CCTK_WARN(0, "Something is seriously wrong in ChangeType.c! Case out of range in switch statement."); + CCTK_WARN(0, "Something is seriously wrong in ChangeType.c! " + "Case out of range in switch statement."); } } @@ -240,12 +253,16 @@ CCTK_INT MoL_ChangeToConstrained(CCTK_INT ConstrainedIndex) timelevs = CCTK_MaxTimeLevelsVI(ConstrainedIndex); if (timelevs < 1) { - CCTK_VWarn(1,__LINE__,__FILE__,"MoL","Warning whilst trying to change variable index %i to evolved.", ConstrainedIndex); + CCTK_VWarn(1,__LINE__,__FILE__,"MoL", + "Warning whilst trying to change variable " + "index %i to evolved.", ConstrainedIndex); CCTK_WARN(0, "The index passed does not correspond to a GF."); } else if (timelevs == 1) { - CCTK_VWarn(1,__LINE__,__FILE__,"MoL","Warning whilst trying to change variable index %i to evolved.", ConstrainedIndex); + CCTK_VWarn(1,__LINE__,__FILE__,"MoL", + "Warning whilst trying to change variable " + "index %i to evolved.", ConstrainedIndex); CCTK_WARN(0, "The index passed only has a single timelevel."); } @@ -285,7 +302,8 @@ CCTK_INT MoL_ChangeToConstrained(CCTK_INT ConstrainedIndex) case MOL_UNKNOWN_VARTYPE: { - ConstrainedVariableIndex[MoLNumConstrainedVariables] = ConstrainedIndex; + ConstrainedVariableIndex[MoLNumConstrainedVariables] = + ConstrainedIndex; MoLNumConstrainedVariables++; break; } @@ -327,7 +345,8 @@ CCTK_INT MoL_ChangeToConstrained(CCTK_INT ConstrainedIndex) default: { - CCTK_WARN(0, "Something is seriously wrong in ChangeType.c! Case out of range in switch statement."); + CCTK_WARN(0, "Something is seriously wrong in ChangeType.c! " + "Case out of range in switch statement."); } } @@ -364,7 +383,9 @@ CCTK_INT MoL_ChangeToSaveAndRestore(CCTK_INT SandRIndex) timelevs = CCTK_MaxTimeLevelsVI(SandRIndex); if (timelevs < 1) { - CCTK_VWarn(1,__LINE__,__FILE__,"MoL","Warning whilst trying to change variable index %i to save and restore.", SandRIndex); + CCTK_VWarn(1,__LINE__,__FILE__,"MoL", + "Warning whilst trying to change variable " + "index %i to save and restore.", SandRIndex); CCTK_WARN(0, "The index passed does not correspond to a GF."); } @@ -426,7 +447,9 @@ CCTK_INT MoL_ChangeToSaveAndRestore(CCTK_INT SandRIndex) case MOL_CONSTRAINED_VARTYPE: { - for (index = usedindex; index < MoLNumConstrainedVariables - 1; index++) + for (index = usedindex; index < MoLNumConstrainedVariables - + 1; + index++) { ConstrainedVariableIndex[index] = ConstrainedVariableIndex[index+1]; } @@ -445,7 +468,8 @@ CCTK_INT MoL_ChangeToSaveAndRestore(CCTK_INT SandRIndex) default: { - CCTK_WARN(0, "Something is seriously wrong in ChangeType.c! Case out of range in switch statement."); + CCTK_WARN(0, "Something is seriously wrong in ChangeType.c! " + "Case out of range in switch statement."); } } @@ -533,7 +557,8 @@ CCTK_INT MoL_ChangeToNone(CCTK_INT RemoveIndex) case MOL_CONSTRAINED_VARTYPE: { - for (index = usedindex; index < MoLNumConstrainedVariables - 1; index++) + for (index = usedindex; index < MoLNumConstrainedVariables - 1; + index++) { ConstrainedVariableIndex[index] = ConstrainedVariableIndex[index+1]; } @@ -555,7 +580,8 @@ CCTK_INT MoL_ChangeToNone(CCTK_INT RemoveIndex) default: { - CCTK_WARN(0, "Something is seriously wrong in ChangeType.c! Case out of range in switch statement."); + CCTK_WARN(0, "Something is seriously wrong in ChangeType.c! " + "Case out of range in switch statement."); } } |