示例#1
0
        public object Clone()
        {
            SoftGMRES Clone = new SoftGMRES();

            Clone.IterationCallback    = this.IterationCallback;
            Clone.MaxKrylovDim         = this.MaxKrylovDim;
            Clone.TerminationCriterion = this.TerminationCriterion;
            if (this.Precond != null)
            {
                Clone.Precond = this.Precond.CloneAs();
            }
            return(Clone);
        }
示例#2
0
        public ISolverSmootherTemplate Clone()
        {
            SoftGMRES Clone = new SoftGMRES();

            Clone.IterationCallback = this.IterationCallback;
            Clone.MaxKrylovDim      = this.MaxKrylovDim;
            Clone.m_MaxIterations   = this.m_MaxIterations;
            if (this.Precond != null)
            {
                Clone.Precond = this.Precond.Clone();
            }
            Clone.m_Tolerance = this.m_Tolerance;
            return(Clone);
        }