EpetraExt::ModelEvaluator::InArgs VanDerPolOscillator::createInArgs() const { InArgsSetup inArgs; inArgs.setSupports(IN_ARG_x,true); inArgs.setSupports(IN_ARG_x_poly,true); if(implicit_) { inArgs.setSupports(IN_ARG_x_dot,true); inArgs.setSupports(IN_ARG_alpha,true); inArgs.setSupports(IN_ARG_beta,true); } return inArgs; }
EpetraExt::ModelEvaluator::InArgs ExampleApplication::createInArgs() const { InArgsSetup inArgs; inArgs.setSupports(IN_ARG_t,true); inArgs.setSupports(IN_ARG_x,true); if(implicit_) { inArgs.setSupports(IN_ARG_x_dot,true); inArgs.setSupports(IN_ARG_alpha,true); inArgs.setSupports(IN_ARG_beta,true); } return inArgs; }
EpetraExt::ModelEvaluator::InArgs ExampleApplication1Dfem::createInArgs() const { InArgsSetup inArgs; inArgs.setSupports(IN_ARG_x,true); inArgs.setSupports(IN_ARG_x_dot,true); inArgs.setSupports(IN_ARG_alpha,true); inArgs.setSupports(IN_ARG_beta,true); inArgs.setSupports(IN_ARG_t,true); // 2007/06/08: rabartl: We have to accept t even if we don't use it! We have // to require that all transient problems define t even if the model does not // use it since this is the only way to completely pass an initial condition. return inArgs; }
EpetraExt::ModelEvaluator::InArgs LorenzModel::createInArgs() const { InArgsSetup inArgs; inArgs.setSupports(IN_ARG_t,true); inArgs.setSupports(IN_ARG_x,true); return inArgs; }
// Create InArgs EpetraExt::ModelEvaluator::InArgs trilinosModelEvaluator::createInArgs() const{ InArgsSetup inArgs; inArgs.setModelEvalDescription(this->description()); inArgs.setSupports(IN_ARG_x,true); inArgs.set_Np(0); return inArgs; }
EpetraExt::ModelEvaluator::InArgs EpetraExt::MultiPointModelEvaluator::createInArgs() const { //return underlyingME->createInArgs(); InArgsSetup inArgs; inArgs.setModelEvalDescription(this->description()); inArgs.set_Np(1); inArgs.setSupports(IN_ARG_x,true); return inArgs; }
EpetraExt::ModelEvaluator::InArgs Stokhos::MPInverseModelEvaluator::createInArgs() const { InArgsSetup inArgs; InArgs me_inargs = me->createInArgs(); inArgs.setModelEvalDescription(this->description()); inArgs.set_Np(num_p); for (int i=0; i<num_p_mp; i++) inArgs.setSupports(IN_ARG_p_mp, mp_p_index_map[i], true); return inArgs; }
EpetraExt::ModelEvaluator::InArgs Stokhos::SGQuadModelEvaluator:: createInArgs() const { InArgsSetup inArgs; InArgs me_inargs = me->createInArgs(); inArgs.setModelEvalDescription(this->description()); inArgs.set_Np(num_p); inArgs.setSupports(IN_ARG_x_dot, me_inargs.supports(IN_ARG_x_dot)); inArgs.setSupports(IN_ARG_x, me_inargs.supports(IN_ARG_x)); inArgs.setSupports(IN_ARG_t, me_inargs.supports(IN_ARG_t)); inArgs.setSupports(IN_ARG_alpha, me_inargs.supports(IN_ARG_alpha)); inArgs.setSupports(IN_ARG_beta, me_inargs.supports(IN_ARG_beta)); for (int i=0; i<num_p; i++) inArgs.setSupports(IN_ARG_p_sg, i, true); inArgs.setSupports(IN_ARG_x_sg, me_inargs.supports(IN_ARG_x)); inArgs.setSupports(IN_ARG_x_dot_sg, me_inargs.supports(IN_ARG_x_dot)); inArgs.setSupports(IN_ARG_sg_basis, true); inArgs.setSupports(IN_ARG_sg_quadrature, true); return inArgs; }
EpetraExt::ModelEvaluator::InArgs twoD_diffusion_ME:: createInArgs() const { InArgsSetup inArgs; inArgs.setModelEvalDescription("TwoD Diffusion Model Evaluator"); // Deterministic InArgs inArgs.setSupports(IN_ARG_x,true); inArgs.set_Np(1); // 1 parameter vector // Stochastic InArgs inArgs.setSupports(IN_ARG_x_sg,true); inArgs.setSupports(IN_ARG_p_sg, 0, true); // 1 SG parameter vector inArgs.setSupports(IN_ARG_sg_basis,true); inArgs.setSupports(IN_ARG_sg_quadrature,true); inArgs.setSupports(IN_ARG_sg_expansion,true); // Multipoint InArgs inArgs.setSupports(IN_ARG_x_mp,true); inArgs.setSupports(IN_ARG_p_mp, 0, true); // 1 MP parameter vector return inArgs; }
EpetraExt::ModelEvaluator::InArgs Albany::ModelEvaluator::createInArgs() const { InArgsSetup inArgs; inArgs.setModelEvalDescription(this->description()); inArgs.setSupports(IN_ARG_t,true); inArgs.setSupports(IN_ARG_x,true); inArgs.setSupports(IN_ARG_x_dot,true); inArgs.setSupports(IN_ARG_x_dotdot,true); inArgs.setSupports(IN_ARG_alpha,true); inArgs.setSupports(IN_ARG_omega,true); inArgs.setSupports(IN_ARG_beta,true); inArgs.set_Np(num_param_vecs+num_dist_param_vecs); #ifdef ALBANY_SG_MP inArgs.setSupports(IN_ARG_x_sg,true); inArgs.setSupports(IN_ARG_x_dot_sg,true); inArgs.setSupports(IN_ARG_x_dotdot_sg,true); for (int i=0; i<num_param_vecs; i++) inArgs.setSupports(IN_ARG_p_sg, i, true); inArgs.setSupports(IN_ARG_sg_basis,true); inArgs.setSupports(IN_ARG_sg_quadrature,true); inArgs.setSupports(IN_ARG_sg_expansion,true); inArgs.setSupports(IN_ARG_x_mp,true); inArgs.setSupports(IN_ARG_x_dot_mp,true); inArgs.setSupports(IN_ARG_x_dotdot_mp,true); for (int i=0; i<num_param_vecs; i++) inArgs.setSupports(IN_ARG_p_mp, i, true); #endif return inArgs; }