public ForwardSolver With(ForwardSolverEngine engine) { Engine = engine; _greenTensorAtoA?.Dispose(); if (Engine == ForwardSolverEngine.Giem2g) { SetGiem2gLogger(); StoreAtoA = true; } else { StoreAtoA = false; } return(this); }
public void Dispose() { if (gtAtoA != null) { gtAtoA.Dispose(); } if (eGreenTensors != null) { foreach (var gt in eGreenTensors.Values) { gt.Dispose(); } eGreenTensors.Clear(); } if (hGreenTensors != null) { foreach (var gt in hGreenTensors.Values) { gt.Dispose(); } hGreenTensors.Clear(); } }