Skip to content

Commit 5c16d6e

Browse files
committed
implict boolean
1 parent 0e035ea commit 5c16d6e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

adapter/PreciceInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void Precice_Setup( char * configFilename, char * participantName, SimulationDat
4848
Precice_InitializeData( sim );
4949

5050
// find if coupling is implicit or explicit. Implicit coupling will return true at the very beginning and explicit will always return false
51-
sim->coupling_explicit = !Precice_IsWriteCheckpointRequired();
51+
sim->coupling_implicit = Precice_IsWriteCheckpointRequired();
5252

5353
}
5454

adapter/PreciceInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ typedef struct SimulationData {
133133
double coupling_init_dtheta;
134134
double precice_dt;
135135
double solver_dt;
136-
bool coupling_explicit;
136+
bool coupling_implicit;
137137

138138
} SimulationData;
139139

nonlingeo_precice.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ void nonlingeo_precice(double **cop, ITG *nk, ITG **konp, ITG **ipkonp, char **l
11141114

11151115
memcpy(&vini[0],&vold[0],sizeof(double)*mt**nk);
11161116

1117-
if( Precice_IsWriteCheckpointRequired() || simulationData.coupling_explicit)
1117+
if( Precice_IsWriteCheckpointRequired() == simulationData.coupling_implicit)
11181118
{
11191119
Precice_WriteIterationCheckpoint( &simulationData, vini );
11201120
if( Precice_IsWriteCheckpointRequired() ) Precice_FulfilledWriteCheckpoint();

0 commit comments

Comments
 (0)