[Carpet] Error when recovering from a checkpoint file
Erik Schnetter
schnetter at cct.lsu.edu
Thu Aug 24 23:41:49 CEST 2006
On Aug 24, 2006, at 16:23:48, Ian Hinder wrote:
> On Thu, Aug 24, 2006 at 03:50:48PM -0500, Erik Schnetter wrote:
>> On Aug 24, 2006, at 14:57:55, Nils Dorband wrote:
>>
>>> Hi,
>>>
>>> I am having trouble to recover from a checkpoint file. I get the
>>> following error:
>>>
>>> Activating thorn CarpetIOHDF5...Success -> active implementation
>>> IOHDF5
>>> While reading characters from a stream:
>>> Character ',' expected, but not found.
>>> The next up to 100 available characters are "".
>>> Input error while reading a bbox
>>> Input error while reading a vector<>
>>> The following elements have been read so far: []
>>> Input error while reading a vector<>
>>> The following elements have been read so far: []
>>> Input error while reading a vector<>
>>> The following elements have been read so far: []
>>>
>>>
>>>
>>> Then the run stops. This happens with a run using Multipatch. I only
>>> see the error on supermike. It is working just fine on a different
>>> machine. I am wondering if someone encountered that problem before
>>> and what the reason might be.
>>
>> This is a parsing routine in Carpet. It interprets e.g. the strings
>> that describe the grid structure. These strings can be given as
>> parameters. They are also stored in checkpoint files. Apparently
>> the string is malformed or missing.
>
> Do you have newlines in the parameter? The currentl implementation
> for checkpointing and recovery of parameters is not compatible with
> parameters containing newline characters. When you checkpoint, the
> parameters from your simulation are written into one long string in
> the HDF5 file, separated by newlines as the delimiters. So the
> parameters will be corrupted when read back in if they have newlines
> in them. One fix would be to modify the routine that writes out the
> parameters to just replace newlines with spaces or empty strings.
> Alternatively, just avoid putting newlines in your parameters.
When Cactus reads parameters, it skips newlines.
What is incompatible? I didn't know. It is possible to put newlines
into parameters at run time.
The grid structure that is written to a checkpoint file is generated
from scratch, and it contains no white space. (I just checked the
file in question.)
-erik
--
Erik Schnetter <schnetter at cct.lsu.edu>
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from www.keyserver.net.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : /archives/developers/attachments/20060824/d59fff55/attachment.pgp
More information about the developers
mailing list