MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / adjustE

Method adjustE

src/debugging/physicsapps/IsingApp.java:214–218  ·  view source on GitHub ↗

Adjust the energy to account for changes in the external field.

()

Source from the content-addressed store, hash-verified

212 * Adjust the energy to account for changes in the external field.
213 */
214 synchronized void adjustE() {
215 E -= (newH-H)*M;
216 H = newH;
217 fieldChanged = false;
218 }
219
220 private boolean flip() {
221 int x = (int) (Math.random()*size);

Callers 1

stepIsingModelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected