xnn.ffnn.models.amoeba_ewald.refresh_cell_terms#
- xnn.ffnn.models.amoeba_ewald.refresh_cell_terms(cache, cells, batch, changed=False)[source]#
Bring the cell terms a step plan keeps for one mesh group (the
influence_cacheofMeshPlan: inverse cells, volumes, per-atom inverses and influence functions) to the cellscells(G, 3, 3), in place, so that a recorded step that reads them follows a changed cell (constant-pressure dynamics).batchgives the structure of every atom of the group. Reads the cells on the host, unless the caller found themchanged; returns whether they had changed.- Parameters:
- Returns:
Truewhen the kept terms described other cells and were recomputed.- Return type: