示例#1
0
        public ForwardSolver With(ForwardSolverEngine engine)
        {
            Engine = engine;
            _greenTensorAtoA?.Dispose();
            if (Engine == ForwardSolverEngine.Giem2g)
            {
                SetGiem2gLogger();
                StoreAtoA = true;
            }
            else
            {
                StoreAtoA = false;
            }

            return(this);
        }
示例#2
0
 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();
     }
 }