*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 9f524b52 authored by Carl-Martin Pfeiler's avatar Carl-Martin Pfeiler
Browse files

BugFix: Buggy recording of AppliedEnergy.

  + Appeared if .Integrate(..., relax=True) used after an external field was applied earlier.
  + Computation was already correct before.
parent 64d97f73
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,11 @@ def Compute_Cst(self):
def ConvertAppliedField(self):
import types
from ngsolve import CoefficientFunction, x, y, z
if(self.parameters.H_ext == None):
self._hext_cf = CoefficientFunction((0, 0, 0))
self._hext_impl_cf = CoefficientFunction((0, 0, 0))
self._hext_mp_cf = CoefficientFunction((0, 0, 0))
return
tScale = self.parameters.gamma0 * self.parameters.Ms
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment