SSCHAcode / python-sscha

The python implementation of the Stochastic Self-Consistent Harmonic Approximation (SSCHA).
GNU General Public License v3.0
55 stars 21 forks source link

force_calculated not correctly updated when compute_ensemble is called #193

Open mesonepigreco opened 6 months ago

mesonepigreco commented 6 months ago

From discussion #187

After using the compute_ensemble with cluster. I can see the ensemble.force correctly store all the calculated results and therefore the ensemble.save_bin can save these results into .npy format. However, it seems the flag of ensemble.force_calculated is not set to be True so that the function ensemble.save does not save all the forces.

mesonepigreco commented 6 months ago

Probably, this is fixed in the last version, 1.4.1, by the commit mentioned.

mesonepigreco commented 6 months ago

Not, it has not. The problem is that when the cluster is invoked in the calculation, the flags force_computed and stress_computed are not set when the configuration is compiled. Instead, this should have been fixed for the AiiDA ensemble and the generic ASE calculator. So, the problem occurs in the subroutine compute_cluster_batch of the Cluster.py file