Topic: Run Error, instanciateYourself: Cant open output file

Hello,
I have compiled oofem 2.0 in both 64 and 32 bit using the vs2010 files supplied on the wiki. Everything compiles fine, with a bunch of warnings, but no errors. When i go to run the exe of either of them it is unable to run, the command line looks as follows:
c:\>C:\Users\Thorson\Desktop\oofem.exe -f C:\Users\Thorson\Desktop\test50.in
_______________________________________________
                      OOFEM -- Finite Element Solver
            Copyright <C>  1994-2008 Borek Patzak
_______________________________________________
__________________________________________________
Error: (...\src\oofemlib\engnum.C:303)
Class: LinearStatic
instanciateYourself: Cant open output file test50.out
____________________________________________
Total 1 error(s) and 0 warning(s) reported
oofem exit code 1

if i run the -v command i get:

OOFEM version @VERSION@ (@host@, @MODULE_LIST@)
of May 9 2011 on @HOST_NAME@

This happens with every file not just test50.in. Is there something that i am doing wrong here? Is test file supposed to be in the active directory or anything along these lines? Any ideas on how to fix this. I am using all of the files supplied with out any changes. I am using windows 7 64 if that helps. Any help would be greatly appreciated.

Thank you

2

Re: Run Error, instanciateYourself: Cant open output file

Hi,

looks like the permission problem when creating/opening the output file.
If you open the input file (test50.in, for example), then the first line should contain the path to the output file (to be more precise, the first line not beginning with '#").
If no path given, then actual working directory will be used to create output file. Could you check that you have the write access to the target directory, where output file is to be created, by creating an empty file, for example.
If not, you can add a full path to the output file.

Let me know,
Borek

Re: Run Error, instanciateYourself: Cant open output file

Thanks for the quick reply. Everything is working perfectly.

Thank you