-
Notifications
You must be signed in to change notification settings - Fork 142
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
ReadFileBuffer needs fix #253
Comments
Please also avoid pseudopotentials/BFD/C.BFD.xml. This a bad file with nan in it. Though it doesn't really matter for this test, it is better to choose another one considering more tests may need this file. |
APP_ABORT message is not consistent with the actually routine. |
Can get_file_length be a member function of ReadFileBuffer? |
The C.BFD.upf file as a 'nan' in it, but the C.BFD.xml file does not. ReadFileBuffer could be moved to it's own file - something to do later, though. I'm uncertain about get_file_length between OO design and functional design. |
How often do we need get_file_length or similar functionality? |
Address comments in issue QMCPACK#253. - initialize the value of is_open to false by default - Update the filename in the APP_ABORT messages - change get_file_length to be a member function.
Closed by #254 |
The unit test crashes in MPI when pp file is missing. This is introduced in #251
Error message cannot be printed correctly when a PP file is missing.
The reason is that is_open is not initialized and always set in open_file.
is_open must be initialized to false and set to false if an open failed.
open_file should check if a file is open or not before try to open anther file.
The text was updated successfully, but these errors were encountered: