Skip to content

Commit

Permalink
try to reconcile VSILFILE vs FILE issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nwagenbrenner committed Mar 12, 2024
1 parent bf610b1 commit 7f814a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ninja/ninjafoam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,8 @@ void NinjaFoam::writeBlockMesh()
VSILFILE *fin;
VSILFILE *fout;

fin = VSIFOpen( pszInput, "r" );
fout = VSIFOpen( pszOutput, "w" );
fin = VSIFOpenL( pszInput, "r" );
fout = VSIFOpenL( pszOutput, "w" );

char *data;

Expand Down Expand Up @@ -1063,8 +1063,8 @@ void NinjaFoam::writeMoveDynamicMesh()
pszInput = CPLFormFilename(pszArchive, "0/pointDisplacement", "");
pszOutput = CPLFormFilename(pszFoamPath, "0/pointDisplacement", "");

fin = VSIFOpen( pszInput, "r" );
fout = VSIFOpen( pszOutput, "w" );
fin = VSIFOpenL( pszInput, "r" );
fout = VSIFOpenL( pszOutput, "w" );

char *data;

Expand Down Expand Up @@ -1773,8 +1773,8 @@ int NinjaFoam::SanitizeOutput()
}
}

fout = VSIFOpen( pszMem, "w" );
fvrt = VSIFOpen( pszVrtMem, "w" );
fout = VSIFOpenL( pszMem, "w" );
fvrt = VSIFOpenL( pszVrtMem, "w" );
if( !fin )
{
CPLError( CE_Failure, CPLE_AppDefined, "Failed to open output file for " \
Expand Down

0 comments on commit 7f814a9

Please sign in to comment.