private LinearSayeSpace <Cube> CreateStartSetup() { bool IsSurfaceIntegral = (mode == QuadratureMode.Surface); LinearPSI <Cube> psi = new LinearPSI <Cube>(Cube.Instance); Tuple <LinearPSI <Cube>, int> psi_i_s_i = new Tuple <LinearPSI <Cube>, int>(psi, 1); LinearSayeSpace <Cube> arg = new LinearSayeSpace <Cube>(Cube.Instance, psi_i_s_i, IsSurfaceIntegral); arg.Reset(); return(arg); }
private LinearSayeSpace <Cube> CreateStartSetup() { bool IsSurfaceIntegral = (mode == QuadratureMode.Surface); LinearPSI <Cube> psi = new LinearPSI <Cube>(Cube.Instance); int domainSign = 1; if (mode == QuadratureMode.NegativeVolume) { domainSign = -1; } Tuple <LinearPSI <Cube>, int> psi_i_s_i = new Tuple <LinearPSI <Cube>, int>(psi, domainSign); LinearSayeSpace <Cube> arg = new LinearSayeSpace <Cube>(Cube.Instance, psi_i_s_i, IsSurfaceIntegral); arg.Reset(); return(arg); }