Closed wutobias closed 3 years ago
Since this is the nth time this happens already, I've decided to rip the band-aid off and do it properly. I've pushed a new branch "json" to the repo that incorporates a copy of the json-fortran library and uses it to write the json files (the one coming out of the integration and the one from CPREPORT). The json-fortran library does not seem to support arrays of arrays so any n>1-dimensional array has been converted into a vector (in Fortran order). Besides this and a few cosmetic changes, it should be more or less the same as before. Could you please pull it and see how it works for you? I've also implemented writing the stress tensor info. The code still needs more testing and a thorough read before merging.
@mkhorton @bjoe2k4 @samblau This may be of interest to you as well. I don't want to break anyone's code once it is merged with the master branch.
Thank you for the notification @aoterodelaroza !
Thanks @aoterodelaroza ! It seems to work like a charm. I see the json files are now formatted correctly and the stress tensor is in them. I compared a few of the values in the json files coming from the old and new code and they seem to match.
Sounds good! I'll wait a few days to run some tests and make sure everything is correct, and that way everyone can check the impact on their code, then merge with master.
The json-fortran library does not seem to support arrays of arrays so any n>1-dimensional array has been converted into a vector (in Fortran order).
This is an unfortunate limitation, I don't think it'll be too hard to update my own code to support this however.
OK, I've checked and everything looks good, and the build systems and tests have been updated. The json branch has been merged with master. Enjoy!
Hi,
when generating a json output from
auto
with multiplePOINTPROP
defined, the json file is not correctly formatted.For example:
Will generate a
pointprops
section in the json file that looks like this:When it should look like this:
I think it can be solved rewriting lines 1819 onwards in autocp@proc.f90 like this (basically just inserting the brackets):
Regards, Tobias