| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// NOX: An Object-Oriented Nonlinear Solver Package |
| 4 |
// |
| 5 |
// Copyright 2002 NTESS and the NOX contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
#ifndef NOX_TPETRA_ME_HEQ_DEF_HPP |
| 10 |
#define NOX_TPETRA_ME_HEQ_DEF_HPP |
| 11 |
|
| 12 |
// Teuchos support |
| 13 |
#include "Teuchos_CommHelpers.hpp" |
| 14 |
|
| 15 |
// Thyra support |
| 16 |
#include "Thyra_MultiVectorStdOps.hpp" |
| 17 |
#include "Thyra_VectorStdOps.hpp" |
| 18 |
#include "Thyra_TpetraThyraWrappers.hpp" |
| 19 |
|
| 20 |
// Kokkos support |
| 21 |
#include "Kokkos_Core.hpp" |
| 22 |
|
| 23 |
#include "Heq_Functors.hpp" |
| 24 |
|
| 25 |
// Nonmember constuctors |
| 26 |
|
| 27 |
template<class Scalar, class LO, class GO, class Node> |
| 28 |
Teuchos::RCP<EvaluatorTpetraHeq<Scalar, LO, GO, Node> > |
| 29 |
evaluatorTpetraHeq(const Teuchos::RCP<const Teuchos::Comm<int> >& comm, |
| 30 |
const Tpetra::global_size_t numGlobalElements, |
| 31 |
const Scalar omega) |
| 32 |
{ |
| 33 |
return Teuchos::rcp(new EvaluatorTpetraHeq<Scalar, LO, GO, Node>(comm, numGlobalElements, omega)); |
| 34 |
} |
| 35 |
|
| 36 |
// Constructor |
| 37 |
|
| 38 |
template<class Scalar, class LO, class GO, class Node> |
| 39 |
EvaluatorTpetraHeq<Scalar, LO, GO, Node>:: |
| 40 |
EvaluatorTpetraHeq(const Teuchos::RCP<const Teuchos::Comm<int> >& comm, |
| 41 |
const Tpetra::global_size_t numGlobalElements, |
| 42 |
const Scalar omega) : |
| 43 |
comm_(comm), |
| 44 |
numGlobalElements_(numGlobalElements), |
| 45 |
omega_(omega), |
| 46 |
showGetInvalidArg_(false) |
| 47 |
{ |
| 48 |
TEUCHOS_ASSERT(nonnull(comm_)); |
| 49 |
|
| 50 |
// solution space |
| 51 |
GO indexBase = 0; |
| 52 |
xMap_ = Teuchos::rcp(new const tpetra_map(numGlobalElements_, indexBase, comm_)); |
| 53 |
xSpace_ = Thyra::createVectorSpace<Scalar, LO, GO, Node>(xMap_); |
| 54 |
|
| 55 |
// residual space |
| 56 |
fMap_ = xMap_; |
| 57 |
fSpace_ = xSpace_; |
| 58 |
|
| 59 |
// communicate the number of unknows and min GID on each proc to all procs |
| 60 |
procNumElements_.resize(comm_->getSize()); |
| 61 |
const std::size_t numMyElements = xMap_->getLocalNumElements(); |
| 62 |
Teuchos::gatherAll(*comm_, 1, &numMyElements, comm_->getSize(), procNumElements_.data()); |
| 63 |
|
| 64 |
procMinGIDs_.resize(comm->getSize()); |
| 65 |
const GO myMinGID = xMap_->getMinGlobalIndex(); |
| 66 |
Teuchos::gatherAll(*comm_, 1, &myMinGID, comm_->getSize(), procMinGIDs_.data()); |
| 67 |
|
| 68 |
// allocate vector for storing the result of the integral operator application |
| 69 |
integralOp_ = Teuchos::rcp(new tpetra_vec(xMap_)); |
| 70 |
|
| 71 |
// setup in/out args |
| 72 |
typedef Thyra::ModelEvaluatorBase MEB; |
| 73 |
MEB::InArgsSetup<Scalar> inArgs; |
| 74 |
inArgs.setModelEvalDescription(this->description()); |
| 75 |
inArgs.setSupports(MEB::IN_ARG_x); |
| 76 |
prototypeInArgs_ = inArgs; |
| 77 |
|
| 78 |
MEB::OutArgsSetup<Scalar> outArgs; |
| 79 |
outArgs.setModelEvalDescription(this->description()); |
| 80 |
outArgs.setSupports(MEB::OUT_ARG_f); |
| 81 |
outArgs.setSupports(MEB::OUT_ARG_W_op); |
| 82 |
outArgs.setSupports(MEB::OUT_ARG_W_prec); |
| 83 |
prototypeOutArgs_ = outArgs; |
| 84 |
|
| 85 |
x0_ = Thyra::createMember(xSpace_); |
| 86 |
V_S(x0_.ptr(), Teuchos::ScalarTraits<scalar_type>::one()); |
| 87 |
nominalValues_ = inArgs; |
| 88 |
nominalValues_.set_x(x0_); |
| 89 |
|
| 90 |
residTimer_ = Teuchos::TimeMonitor::getNewCounter("Model Evaluator: Residual Evaluation"); |
| 91 |
intOpTimer_ = Teuchos::TimeMonitor::getNewCounter("Model Evaluator: Integral Operator Evaluation"); |
| 92 |
} |
| 93 |
|
| 94 |
// Initializers/Accessors |
| 95 |
|
| 96 |
|
| 97 |
template<class Scalar, class LO, class GO, class Node> |
| 98 |
void EvaluatorTpetraHeq<Scalar, LO, GO, Node>:: |
| 99 |
setShowGetInvalidArgs(bool showGetInvalidArg) |
| 100 |
{ |
| 101 |
showGetInvalidArg_ = showGetInvalidArg; |
| 102 |
} |
| 103 |
|
| 104 |
|
| 105 |
template<class Scalar, class LO, class GO, class Node> |
| 106 |
void EvaluatorTpetraHeq<Scalar, LO, GO, Node>:: |
| 107 |
set_W_factory(const Teuchos::RCP<const Thyra::LinearOpWithSolveFactoryBase<Scalar> >& W_factory) |
| 108 |
{ |
| 109 |
W_factory_ = W_factory; |
| 110 |
} |
| 111 |
|
| 112 |
|
| 113 |
// Public functions overridden from ModelEvaulator |
| 114 |
|
| 115 |
|
| 116 |
template<class Scalar, class LO, class GO, class Node> |
| 117 |
Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> > |
| 118 |
EvaluatorTpetraHeq<Scalar, LO, GO, Node>::get_x_space() const |
| 119 |
{ |
| 120 |
return xSpace_; |
| 121 |
} |
| 122 |
|
| 123 |
|
| 124 |
template<class Scalar, class LO, class GO, class Node> |
| 125 |
Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> > |
| 126 |
EvaluatorTpetraHeq<Scalar, LO, GO, Node>::get_f_space() const |
| 127 |
{ |
| 128 |
return fSpace_; |
| 129 |
} |
| 130 |
|
| 131 |
|
| 132 |
template<class Scalar, class LO, class GO, class Node> |
| 133 |
Thyra::ModelEvaluatorBase::InArgs<Scalar> |
| 134 |
EvaluatorTpetraHeq<Scalar, LO, GO, Node>::getNominalValues() const |
| 135 |
{ |
| 136 |
return nominalValues_; |
| 137 |
} |
| 138 |
|
| 139 |
|
| 140 |
template<class Scalar, class LO, class GO, class Node> |
| 141 |
Teuchos::RCP<Thyra::LinearOpBase<Scalar> > |
| 142 |
EvaluatorTpetraHeq<Scalar, LO, GO, Node>::create_W_op() const |
| 143 |
{ |
| 144 |
Teuchos::RCP<jac_op> W_tpetra = Teuchos::rcp(new jac_op(xMap_, procNumElements_, procMinGIDs_)); |
| 145 |
return Thyra::tpetraLinearOp<Scalar, LO, GO, Node>(fSpace_, xSpace_, W_tpetra); |
| 146 |
} |
| 147 |
|
| 148 |
template<class Scalar, class LO, class GO, class Node> |
| 149 |
Teuchos::RCP< Thyra::PreconditionerBase<Scalar> > |
| 150 |
EvaluatorTpetraHeq<Scalar, LO, GO, Node>::create_W_prec() const |
| 151 |
{ |
| 152 |
// Create the CrsMatrix |
| 153 |
typedef Tpetra::CrsGraph<LO, GO, Node> tpetra_graph; |
| 154 |
typedef typename tpetra_graph::local_graph_device_type::row_map_type::non_const_type row_map_type; |
| 155 |
typedef typename tpetra_graph::local_graph_device_type::entries_type::non_const_type view_type; |
| 156 |
const std::size_t numMyElements = xMap_->getLocalNumElements(); |
| 157 |
row_map_type offsets("row offsets", numMyElements+1); |
| 158 |
view_type indices("column indices", numMyElements); |
| 159 |
GraphSetupFunctor<tpetra_graph> functor(offsets, indices, numMyElements); |
| 160 |
Kokkos::parallel_for("graph setup", numMyElements+1, functor); |
| 161 |
Teuchos::RCP<tpetra_graph> graph |
| 162 |
= Teuchos::rcp(new tpetra_graph(fMap_, xMap_, offsets, indices)); |
| 163 |
graph->fillComplete(); |
| 164 |
Teuchos::RCP<tpetra_mat> W_tpetra |
| 165 |
= Teuchos::rcp(new tpetra_mat(graph)); |
| 166 |
W_tpetra->fillComplete(); |
| 167 |
|
| 168 |
// Create the Thyra preconditioner |
| 169 |
Teuchos::RCP<thyra_op> W_op |
| 170 |
= Thyra::tpetraLinearOp<Scalar, LO, GO, Node>(fSpace_, xSpace_, W_tpetra); |
| 171 |
Teuchos::RCP<Thyra::DefaultPreconditioner<Scalar> > prec |
| 172 |
= Teuchos::rcp(new Thyra::DefaultPreconditioner<Scalar>); |
| 173 |
prec->initializeRight(W_op); |
| 174 |
return prec; |
| 175 |
} |
| 176 |
|
| 177 |
template<class Scalar, class LO, class GO, class Node> |
| 178 |
Teuchos::RCP<const Thyra::LinearOpWithSolveFactoryBase<Scalar> > |
| 179 |
EvaluatorTpetraHeq<Scalar, LO, GO, Node>::get_W_factory() const |
| 180 |
{ |
| 181 |
return W_factory_; |
| 182 |
} |
| 183 |
|
| 184 |
|
| 185 |
template<class Scalar, class LO, class GO, class Node> |
| 186 |
Thyra::ModelEvaluatorBase::InArgs<Scalar> |
| 187 |
EvaluatorTpetraHeq<Scalar, LO, GO, Node>::createInArgs() const |
| 188 |
{ |
| 189 |
return prototypeInArgs_; |
| 190 |
} |
| 191 |
|
| 192 |
|
| 193 |
// Private functions overridden from ModelEvaulatorDefaultBase |
| 194 |
|
| 195 |
|
| 196 |
template<class Scalar, class LO, class GO, class Node> |
| 197 |
Thyra::ModelEvaluatorBase::OutArgs<Scalar> |
| 198 |
EvaluatorTpetraHeq<Scalar, LO, GO, Node>::createOutArgsImpl() const |
| 199 |
{ |
| 200 |
return prototypeOutArgs_; |
| 201 |
} |
| 202 |
|
| 203 |
|
| 204 |
template<class Scalar, class LO, class GO, class Node> |
| 205 |
void EvaluatorTpetraHeq<Scalar, LO, GO, Node>:: |
| 206 |
evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs<Scalar> &inArgs, |
| 207 |
const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs) const |
| 208 |
{ |
| 209 |
TEUCHOS_ASSERT(nonnull(inArgs.get_x())); |
| 210 |
|
| 211 |
const Teuchos::RCP<thyra_vec> f_out = outArgs.get_f(); |
| 212 |
const Teuchos::RCP<thyra_op> W_out = outArgs.get_W_op(); |
| 213 |
const Teuchos::RCP<thyra_prec> W_prec_out = outArgs.get_W_prec(); |
| 214 |
|
| 215 |
const bool fill_f = nonnull(f_out); |
| 216 |
const bool fill_W = nonnull(W_out); |
| 217 |
const bool fill_W_prec = nonnull(W_prec_out); |
| 218 |
|
| 219 |
typedef Thyra::TpetraOperatorVectorExtraction<Scalar,LO,GO,Node> tpetra_extract; |
| 220 |
|
| 221 |
if ( fill_f || fill_W || fill_W_prec ) { |
| 222 |
|
| 223 |
// Get the underlying tpetra objects |
| 224 |
Teuchos::RCP<const tpetra_vec> u = tpetra_extract::getConstTpetraVector(inArgs.get_x()); |
| 225 |
|
| 226 |
Teuchos::RCP<tpetra_vec> f; |
| 227 |
if (fill_f) { |
| 228 |
f = tpetra_extract::getTpetraVector(f_out); |
| 229 |
} |
| 230 |
|
| 231 |
Teuchos::RCP<jac_op> J; |
| 232 |
if (fill_W) { |
| 233 |
Teuchos::RCP<tpetra_op> M_tpetra = tpetra_extract::getTpetraOperator(W_out); |
| 234 |
J = Teuchos::rcp_dynamic_cast<jac_op>(M_tpetra); |
| 235 |
TEUCHOS_ASSERT(nonnull(J)); |
| 236 |
} |
| 237 |
|
| 238 |
Teuchos::RCP<tpetra_mat> M_inv; |
| 239 |
if (fill_W_prec) { |
| 240 |
Teuchos::RCP<tpetra_op> M_tpetra = tpetra_extract::getTpetraOperator(W_prec_out->getNonconstRightPrecOp()); |
| 241 |
M_inv = Teuchos::rcp_dynamic_cast<tpetra_mat>(M_tpetra); |
| 242 |
TEUCHOS_ASSERT(nonnull(M_inv)); |
| 243 |
M_inv->resumeFill(); |
| 244 |
} |
| 245 |
|
| 246 |
// Zero out the objects that will be filled |
| 247 |
integralOp_->putScalar(Teuchos::ScalarTraits<scalar_type>::zero()); |
| 248 |
if (fill_f) { |
| 249 |
f->putScalar(Teuchos::ScalarTraits<scalar_type>::zero()); |
| 250 |
} |
| 251 |
if (fill_W) { |
| 252 |
J->unitialize(); |
| 253 |
} |
| 254 |
if (fill_W_prec) { |
| 255 |
M_inv->setAllToScalar(Teuchos::ScalarTraits<scalar_type>::zero()); |
| 256 |
} |
| 257 |
|
| 258 |
// Compute the integral operator |
| 259 |
typedef typename tpetra_vec::execution_space execution_space; |
| 260 |
typedef Kokkos::TeamPolicy<execution_space> team_policy; |
| 261 |
|
| 262 |
const int myRank = comm_->getRank(); |
| 263 |
const GO myMinGID = xMap_->getMinGlobalIndex(); |
| 264 |
{ |
| 265 |
Teuchos::TimeMonitor timer(*intOpTimer_); |
| 266 |
for (int proc = 0; proc < comm_->getSize(); ++proc) { |
| 267 |
// Compute the local reduction contribution on each proc |
| 268 |
const std::size_t procNumElements = procNumElements_[proc]; |
| 269 |
const GO procMinGID = procMinGIDs_[proc]; |
| 270 |
Teuchos::RCP<tpetra_vec> localSum; |
| 271 |
if (comm_->getSize() == 1) |
| 272 |
localSum = integralOp_; |
| 273 |
else { |
| 274 |
Teuchos::RCP<const tpetra_map> map |
| 275 |
= Teuchos::rcp(new const tpetra_map(procNumElements, 0, comm_, Tpetra::LocallyReplicated)); |
| 276 |
localSum = Teuchos::rcp(new tpetra_vec(map)); |
| 277 |
} |
| 278 |
|
| 279 |
IntegralOperatorFunctor<tpetra_vec> functor(*u, *localSum, myMinGID, procMinGID); |
| 280 |
Kokkos::parallel_for("integral operator", team_policy(procNumElements, Kokkos::AUTO), functor); |
| 281 |
|
| 282 |
// Reduce local contributions and fill the vector |
| 283 |
if (comm_->getSize() > 1) { |
| 284 |
localSum->reduce(); |
| 285 |
if (myRank == proc) { |
| 286 |
auto source = localSum->getLocalViewDevice(Tpetra::Access::ReadOnly); |
| 287 |
auto target = integralOp_->getLocalViewDevice(Tpetra::Access::ReadWrite); |
| 288 |
Kokkos::deep_copy(target, source); |
| 289 |
} |
| 290 |
} |
| 291 |
} |
| 292 |
integralOp_->scale(omega_/static_cast<Scalar>(2*numGlobalElements_)); |
| 293 |
Kokkos::fence(); |
| 294 |
} |
| 295 |
|
| 296 |
// Residual computation |
| 297 |
const std::size_t numMyElements = xMap_->getLocalNumElements(); |
| 298 |
if (fill_f) { |
| 299 |
Teuchos::TimeMonitor timer(*residTimer_); |
| 300 |
|
| 301 |
ResidualEvaluatorFunctor<tpetra_vec> functor(*f, *u, *integralOp_); |
| 302 |
Kokkos::parallel_for("residual evaluation", numMyElements, functor); |
| 303 |
Kokkos::fence(); |
| 304 |
} |
| 305 |
|
| 306 |
// Jacobian operator computation |
| 307 |
if (fill_W) { |
| 308 |
J->initialize(omega_, integralOp_); |
| 309 |
} |
| 310 |
|
| 311 |
// Preconditioner computation |
| 312 |
if (fill_W_prec) { |
| 313 |
PreconditionerEvaluatorFunctor<tpetra_vec, tpetra_mat> functor(*M_inv, *integralOp_, omega_, numGlobalElements_); |
| 314 |
Kokkos::parallel_for("prec evaluation", numMyElements, functor); |
| 315 |
M_inv->fillComplete(); |
| 316 |
} |
| 317 |
} |
| 318 |
} |
| 319 |
|
| 320 |
|
| 321 |
//////////////////////////////////////////////////////// |
| 322 |
// Jacobian operator implementations |
| 323 |
//////////////////////////////////////////////////////// |
| 324 |
|
| 325 |
|
| 326 |
template<class Scalar, class LO, class GO, class Node> |
| 327 |
HeqJacobianOperator<Scalar, LO, GO, Node>:: |
| 328 |
HeqJacobianOperator(const Teuchos::RCP<const Tpetra::Map<LO, GO, Node> >& map, |
| 329 |
const std::vector<std::size_t>& procNumElements, |
| 330 |
const std::vector<GO>& procMinGIDs) : |
| 331 |
map_(map), |
| 332 |
procNumElements_(procNumElements), |
| 333 |
procMinGIDs_(procMinGIDs) |
| 334 |
{ |
| 335 |
integralOpX_ = Teuchos::rcp(new tpetra_vec(map_)); |
| 336 |
} |
| 337 |
|
| 338 |
|
| 339 |
template<class Scalar, class LO, class GO, class Node> |
| 340 |
void HeqJacobianOperator<Scalar, LO, GO, Node>:: |
| 341 |
initialize(const Scalar& omega, |
| 342 |
const Teuchos::RCP<Tpetra::Vector<Scalar, LO, GO, Node> >& integralOp) |
| 343 |
{ |
| 344 |
omega_ = omega; |
| 345 |
|
| 346 |
TEUCHOS_ASSERT(map_->isSameAs(*integralOp->getMap())); |
| 347 |
integralOp_ = integralOp; |
| 348 |
} |
| 349 |
|
| 350 |
|
| 351 |
template<class Scalar, class LO, class GO, class Node> |
| 352 |
void HeqJacobianOperator<Scalar, LO, GO, Node>:: |
| 353 |
unitialize() |
| 354 |
{ |
| 355 |
omega_ = Teuchos::ScalarTraits<scalar_type>::zero(); |
| 356 |
integralOp_ = Teuchos::null; |
| 357 |
} |
| 358 |
|
| 359 |
|
| 360 |
template<class Scalar, class LO, class GO, class Node> |
| 361 |
Teuchos::RCP<const Tpetra::Map<LO, GO, Node> > |
| 362 |
HeqJacobianOperator<Scalar, LO, GO, Node>::getDomainMap() const |
| 363 |
{ |
| 364 |
return map_; |
| 365 |
} |
| 366 |
|
| 367 |
|
| 368 |
template<class Scalar, class LO, class GO, class Node> |
| 369 |
Teuchos::RCP<const Tpetra::Map<LO, GO, Node> > |
| 370 |
HeqJacobianOperator<Scalar, LO, GO, Node>::getRangeMap() const |
| 371 |
{ |
| 372 |
return map_; |
| 373 |
} |
| 374 |
|
| 375 |
|
| 376 |
template<class Scalar, class LO, class GO, class Node> |
| 377 |
void HeqJacobianOperator<Scalar, LO, GO, Node>:: |
| 378 |
apply(const Tpetra::MultiVector<Scalar,LO,GO,Node>& X, |
| 379 |
Tpetra::MultiVector<Scalar,LO,GO,Node>& Y, |
| 380 |
Teuchos::ETransp mode, |
| 381 |
Scalar alpha, |
| 382 |
Scalar beta) const |
| 383 |
{ |
| 384 |
TEUCHOS_ASSERT(nonnull(integralOp_)); |
| 385 |
TEUCHOS_ASSERT(mode == Teuchos::NO_TRANS); |
| 386 |
|
| 387 |
Scalar zero = Teuchos::ScalarTraits<Scalar>::zero(); |
| 388 |
Scalar one = Teuchos::ScalarTraits<Scalar>::one(); |
| 389 |
if (alpha == zero) { |
| 390 |
if (beta == zero) |
| 391 |
Y.putScalar(zero); |
| 392 |
else if (beta != one) |
| 393 |
Y.scale(beta); |
| 394 |
return; |
| 395 |
} |
| 396 |
|
| 397 |
// Apply the integral operator to the input multivector |
| 398 |
typedef typename tpetra_vec::execution_space execution_space; |
| 399 |
typedef Kokkos::TeamPolicy<execution_space> team_policy; |
| 400 |
|
| 401 |
Teuchos::RCP<const Teuchos::Comm<int> > comm = map_->getComm(); |
| 402 |
const int myRank = comm->getRank(); |
| 403 |
const GO myMinGID = map_->getMinGlobalIndex(); |
| 404 |
const std::size_t numMyElements = map_->getLocalNumElements(); |
| 405 |
|
| 406 |
// Loop over vecs |
| 407 |
for (std::size_t col = 0; col < X.getNumVectors(); ++col) { |
| 408 |
integralOpX_->putScalar(zero); |
| 409 |
|
| 410 |
// Loop over sections of vec |
| 411 |
for (int proc = 0; proc < comm->getSize(); ++proc) { |
| 412 |
const std::size_t procNumElements = procNumElements_[proc]; |
| 413 |
const GO procMinGID = procMinGIDs_[proc]; |
| 414 |
Teuchos::RCP<tpetra_vec> localResult; |
| 415 |
if (comm->getSize() == 1) |
| 416 |
localResult = integralOpX_; |
| 417 |
else { |
| 418 |
Teuchos::RCP<const tpetra_map> map |
| 419 |
= Teuchos::rcp(new const tpetra_map(procNumElements, 0, comm, Tpetra::LocallyReplicated)); |
| 420 |
localResult = Teuchos::rcp(new tpetra_vec(map)); |
| 421 |
} |
| 422 |
|
| 423 |
IntegralOperatorFunctor<tpetra_vec> functor(*X.getVector(col), *localResult, myMinGID, procMinGID); |
| 424 |
Kokkos::parallel_for("integral operator", team_policy(procNumElements, Kokkos::AUTO), functor); |
| 425 |
|
| 426 |
if (comm->getSize() > 1) { |
| 427 |
localResult->reduce(); |
| 428 |
if (myRank == proc) { |
| 429 |
auto source = localResult->getLocalViewDevice(Tpetra::Access::ReadOnly); |
| 430 |
auto target = integralOpX_->getLocalViewDevice(Tpetra::Access::ReadWrite); |
| 431 |
Kokkos::deep_copy(target, source); |
| 432 |
} |
| 433 |
} |
| 434 |
} |
| 435 |
|
| 436 |
// Compute the Jacobian-vector product |
| 437 |
JacobianEvaluatorFunctor<tpetra_vec> |
| 438 |
functor(*Y.getVectorNonConst(col), *X.getVector(col), *integralOp_, *integralOpX_, alpha, beta, omega_); |
| 439 |
Kokkos::parallel_for("jacobian evaluation", numMyElements, functor); |
| 440 |
|
| 441 |
} |
| 442 |
} |
| 443 |
|
| 444 |
#endif |