-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot open input file for reading #125
Comments
I think I know what the problem is: Saying the input file is "/test/input_file" will make the code look for the On Wed, Jun 15, 2016 at 10:01 AM rafarohit notifications@github.com wrote:
|
Thank you, that helped open the input file. I am unable to open to the mesh file now. The mesh files I used were from the testcases folder already downloaded with HiFiLES. Do they have to be modified in any way? |
In the input file, specify the full location of the mesh file. Otherwise,
|
Thanks for your patience. I encounter another fatal error 'Unable to open cubature file'. I checked cubature_1d.cpp and realized it is reading from /data/cubature_1d.dat (i.e., from the root) and changed the read location to the actual location. It still gives me the same error. Would you like me to delete the executable and ./configure and make again with the new location in cubature_1d.cpp? |
I would suggest placing the executable in the bin folder and calling it
|
The executable is in the bin itself. I have placed the mesh file and the folder containing the input file in bin too. |
I mean to "cd" into bin and call the executable like this:
|
yes, that is what I have been doing! |
Ah, I know what's going on: The environment variable HIFILES_DIR needs to be defined in bash as the
|
Aha, I get it and I actually had a question about setting the environment variables in .bashrc. |
I see; the tutorial is confusing. Add the following line to your ~/.bashrc save and exit. This sets the environment variable. Then type in your terminal: On Wed, Jun 15, 2016 at 12:41 PM, rafarohit notifications@github.com
|
I solved the problem a few days ago. I set the environment variable to: Besides that, I had to make sure the cubature.cpp from the src folder was reading from the correct location. Hence, made following change in the .cpp file: Note: it is not "filename+=" but just "filename=". |
Glad you could solve it! On Sat, Jun 18, 2016 at 1:12 AM rafarohit notifications@github.com wrote:
|
I am new to HiFiLES.
I have finished ./configure and make steps and have an executable created in bin. I create a directory (say "test") in bin itself that has input_file and mesh file.neu. I am trying to execute the file using the command bin/./HiFiLES /test/input_file
I get an error "Fatal Error 'Cannot open input file for reading.' at ..src/input.cpp:597".
I am trying to execute on a single CPU.
Any idea what I may be doing wrong?
The text was updated successfully, but these errors were encountered: