Nope. In order to support changing grid sizes, changing number of cells,
changing number of particles. We've had to write a netCDF wrapper library that
creates a new file every time theres a change in the number of points (which
can be
every frame, in some instances). It would be nice to have this functionality
built into
netCDF even if it is clear that there would be a significant performance penalty.
Our hope has been that eventually, some support for changing dimensions
lengths will be added... but...
Our crude implementation looks like:
-------------------------
StartNextFrame()
{ CreateNewFile = FALSE;
for ( i = 0; i < NumDims ; i++)
if (Dimlengths[FrameNumber][i] != Dimelengths[FrameNumber-1][i])
CreateNewFile = TRUE;
if (CreateNewFile == TRUE)
netCDFFileIDs[FrameNumber] = CreateNewNetCDFFile();
else
netCDFFileIDs[FrameNumber] = netCDFFileIDs[FrameNumber - 1];
}
GetNetCDFFileID(long FrameNumber) { return netCDFFileIDs[FrameNumber];}
-----------
But, obviously, this requires quite a bit of work designing and implementing
a
wrapper. Contact me if you'd like more information about our implementation.
Peace,
blincoln@ssesco.com