atomec-project / atoMEC

Python-based average-atom code for simulations of high energy density phenomena such as in warm dense matter.
https://atomec-project.github.io/atoMEC/
BSD 3-Clause "New" or "Revised" License
17 stars 12 forks source link

Add missing `config` variables to `pressure.py` #152

Closed timcallow closed 2 years ago

timcallow commented 2 years ago

Previously, if the stress_tensor function was called without a prior CalcEnergy call, there were errors due to missing config variables. This is a problem because postprocessing steps should be independent. Here we fix the issue.