Skip to content

Commit

Permalink
Merge pull request #275 from xylar/mpas_mask_creator_64_char_strings
Browse files Browse the repository at this point in the history
Change string length back from 1024 to 64 in mask creator
  • Loading branch information
xylar authored Nov 14, 2019
2 parents 6ac019d + c9b6668 commit 10f6f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesh_tools/mesh_conversion_tools/mpas_mask_creator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ int outputMaskDimensions( const string outputFilename ){/*{{{*/
if (!(tempDim = grid.add_dim("maxPointsInGroup", maxPointsInGroup))) return NC_ERR;
}

if (!(tempDim = grid.add_dim("StrLen", 1024))) return NC_ERR;
if (!(tempDim = grid.add_dim("StrLen", 64))) return NC_ERR;

grid.close();

Expand All @@ -1743,7 +1743,7 @@ int outputMaskAttributes( const string outputFilename, const string inputFilenam
* **********************************************************************/
// Return this code to the OS in case of failure.
static const int NC_ERR = 2;
char mesh_spec_str[1024];
char mesh_spec_str[64];

// set error behaviour (matches fortran behaviour)
NcError err(NcError::verbose_nonfatal);
Expand Down

0 comments on commit 10f6f84

Please sign in to comment.