Property Output Bug
- piskuliche
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 1
6 years 10 months ago #364
by piskuliche
Hello! Hope all is going well.
I just wanted to report a small bug that I have found real quick.
In some cases, when you are outputting properties in gemc simulations, if you have the wrong order of properties to output it causes the number of molecules in box 2 to output as zero.
This is the code snippet that caused it:
# Property_Info 1
energy_total
pressure
volume
density
mass_density
nmols
# Property_Info 2
energy_total
pressure
volume
density
mass_density
nmols
However, when I reverse the order of mass_density and nmols, the number of molecules in both boxes are reported accurately.
I just thought I would let you know.
Best,
Zeke
I just wanted to report a small bug that I have found real quick.
In some cases, when you are outputting properties in gemc simulations, if you have the wrong order of properties to output it causes the number of molecules in box 2 to output as zero.
This is the code snippet that caused it:
# Property_Info 1
energy_total
pressure
volume
density
mass_density
nmols
# Property_Info 2
energy_total
pressure
volume
density
mass_density
nmols
However, when I reverse the order of mass_density and nmols, the number of molecules in both boxes are reported accurately.
I just thought I would let you know.
Best,
Zeke
Please Log in to join the conversation.
- jshah46545
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 5
- ramess101
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 2
5 years 8 months ago #511
by ramess101
You might have already resolved this issue for the upcoming release. But in case you are still trying to track down this bug, I wanted to provide you with a slightly different example of this issue.
Here is the relevant portion of my .inp file:
# Property_Info 1
mass_density
Nmols
Volume
Pressure
energy_total
energy_lj
# Property_Info 2
mass_density
Nmols
Volume
Pressure
energy_total
energy_lj
The mass_density, volume, pressure, and energies all appeared to be correct. However, the Nmols column in the box1.prp file was actually the Nmols from box2. The box2.prp Nmols column was also wrong, although it was not clear to which property these values actually corresponded. The correct output was obtained by moving Nmols above mass_density.
In case it is helpful, I am using Cassandra_V1.2 compiled with gfortran and openMP disabled.
Here is the relevant portion of my .inp file:
# Property_Info 1
mass_density
Nmols
Volume
Pressure
energy_total
energy_lj
# Property_Info 2
mass_density
Nmols
Volume
Pressure
energy_total
energy_lj
The mass_density, volume, pressure, and energies all appeared to be correct. However, the Nmols column in the box1.prp file was actually the Nmols from box2. The box2.prp Nmols column was also wrong, although it was not clear to which property these values actually corresponded. The correct output was obtained by moving Nmols above mass_density.
In case it is helpful, I am using Cassandra_V1.2 compiled with gfortran and openMP disabled.
Please Log in to join the conversation.
- ryangmullen
- Offline
- Administrator
Less
More
- Posts: 124
- Karma: 4
- Thank you received: 24
Time to create page: 0.115 seconds