-
Notifications
You must be signed in to change notification settings - Fork 221
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
(gr) (hdf5) fixed compile errors when GR=yes and HDF5=yes #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really trying to avoid ifdefs all over the place, would be nicer to use if (gr) rather than #ifdef GR, as it allows for if(gr) to become a runtime option eventually
I agree. The biggest roadblock to this is that GR compiles a different externalforces module, and it also does not compile any of |
I decided to include all |
thanks for removing the ifdefs (#55), however there is now a conflict with the radiation branch just merged. If you could fix this would be helpful. |
# Conflicts: # build/Makefile
…readwrite_dumps_fortran
Conflict resolved. For consistency between the two formats:
|
@dliptai: Thanks very much for fixing this. It all looks good to me. @danieljprice: Is it possible for this to be merged? The MPI test failure is in radiation, not the HDF5 read/write dumps, as far as I can tell.
|
Can you pull this @danieljprice ? I can't convert anything to hdf5 currently. |
I think this might just need to be updated from master for the checks to pass. All checks are currently passing on the master branch. |
src/main/readwrite_dumps_hdf5.F90
Outdated
if (fulldump) then | ||
allocate(pressure(npart),beta_pr(npart),dtin(npart)) | ||
allocate(pressure(npart),beta_pr(npart),dtin(npart),temperature(npart)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
memory should not be allocated here for either pressure or temperature
src/main/readwrite_dumps_hdf5.F90
Outdated
call equationofstate(ieos,ponrhoi,spsoundi,rhoi,xyzh(1,i),xyzh(2,i),xyzh(3,i)) | ||
endif | ||
pressure(i) = ponrhoi*rhoi | ||
pressure(i) = eos_vars(igasP,i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eos_vars should be written directly to disk, there is no need for intermediate storage
This also adds dim and part as dependencies to utils_dumpfile_hdf5. This makes sense, as they are low level dependencies relating to particle arrays.
@danieljprice: I've implemented the requested changes on my fork (https://github.com/dmentipl/phantom). I'm not sure if I can add my commits to this PR. I can create a new pull request, if that's OK @dliptai? Or else, if you make me a contributor to your fork, I can push the changes that way. |
These files do not require preprocessing so they should have a f90 file extension not F90.
All the tests are passing on my fork: |
also, just for reference, failures here reflect ongoing problems raised in #46 |
Sorry, I just saw this... I've merged my changes into @dliptai's fork which has added to this pull request. The tests are running now. |
No description provided.