[Carpet] Carpet IO oddity
Erik Schnetter
schnetter at cct.lsu.edu
Mon May 1 18:22:36 CEST 2006
On May 1, 2006, at 08:54:42, Wolfgang Kastaun wrote:
> Nevertheless it would be nice if Carpet could detect if files
> (also .asc
> files) it creates are already there and issue a warning, or even
> abort.
Yes, that would be nice in many cases. However, many people rely on
the fact that you can just re-start a simulation in an existing
simulation and have Cactus overwrite all existing files.
We could, however, have the I/O subsystem (not the driver) check
whether the output directory is empty when it is created. A new
parameter IO::require_empty_output_directory or
IO::require_new_output_directory could be introduced for this. This
would be checked right after the call to IOUtil_CreateDirectory in
IOUtil's Startup.c.
Thomas, the second case (requiring that the output directory does not
yet exist) is easy to check. But how does one check whether a
directory is empty?
-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/20060501/db158f0a/attachment.pgp
More information about the developers
mailing list