Skip to content

Commit

Permalink
Fixed the AD flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe committed Feb 10, 2025
1 parent 8f17fa6 commit 1f43af7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OFMesh.H
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public:
const label pointI,
const label compI) const
{
#if defined(DAOF_AD_MODE_T1S) || defined(DAOF_AD_MODE_A1S)
#if defined(CODI_ADR) || defined(CODI_ADF)
return meshPtr_().points()[pointI][compI].getValue();
#else
return meshPtr_().points()[pointI][compI];
Expand Down Expand Up @@ -192,7 +192,7 @@ public:

forAll(state, cellI)
{
#if defined(DAOF_AD_MODE_T1S) || defined(DAOF_AD_MODE_A1S)
#if defined(CODI_ADR) || defined(CODI_ADF)
field[cellI] = state[cellI].getValue();
#else
field[cellI] = state[cellI];
Expand All @@ -216,7 +216,7 @@ public:
{
for (label i = 0; i < 3; i++)
{
#if defined(DAOF_AD_MODE_T1S) || defined(DAOF_AD_MODE_A1S)
#if defined(CODI_ADR) || defined(CODI_ADF)
field[counterI] = state[cellI][i].getValue();
#else
field[counterI] = state[cellI][i];
Expand Down

0 comments on commit 1f43af7

Please sign in to comment.