Flash is not hardwired to read flash.par from any specific directory. That
means that it expects the flash.par file to be in the directory from where
the executable is being run. If you want to change that, you'll have to
modify the setup script (setup.py in $(FLASHHOME)/bin), line number 1655.
if os.path.isfile(os.path.join(setupsDir, opts.setupName,
'flash.par')):
shutil.copy(os.path.join(setupsDir, opts.setupName, 'flash.par'), '.')
It is the last bit ('.') which tells the setup to copy flash.par to
current directory, which at this point in "object". If you want to copy to
$FLASHOME then change it to ('../'), or hardwire the directory you want
within those quotes by specifying the whole path.
On Tue, 17 May 2005, Farley, David wrote:
> After a month of tinkering with fixing my problem of losing a fluid during Flash runs, I finally figured out the answers. First, Intel compilers ver. 7.1 for ia64 are inadequate to handle Flash and caused most of my problems. However, to upgrade to version 8.1 required upgrading my kernel to 2.4.21, etc. and rebuilding hdf5-1.4.3 and mpich-1.2.6. Anyhow, now I'm not losing fluids anymore, but then I was getting a "segmentation fault" .... "cannot open flash.par".
>
> The problem was Flash 2.5 is trying to read and write exclusively to FLASH2.5/object. So all hdf checkpoint files, etc. end up in this directory. Also, I had to copy my flash.par into /object. Note if flash.par is in the setup directory (i.e. /setup/kh_mhd/falsh.par), then Flash automatically copies that flash.par into /object.
>
> Anyhow, I would prefer to use the old way of reading/writing from the FLASH2.5 directory rather than FLASH2.5/object. (note I did NOT use -portable in ./setup <setup> -auto).
>
> Any ideas on how to force Flash to use the correct directory??
>
> Thanks, Dave
>
> PS. For some reason I must now do "lamboot" prior to running mpich (which I didn't have to before). I guess this si due to running a new kernel and mpich-1.2.6
>
-- Anshu Dubey Astronomy & Astrophysics University of Chicago 5640 S. Ellis Ave. Chicago IL 60637 Tel : (773) 834 2999 Fax : (773) 834 3230Received on Tue May 17 09:51:26 2005
This archive was generated by hypermail 2.1.8 : Thu Aug 31 2006 - 21:20:48 CDT