Commit f2c49f13 authored by Chris Siefert's avatar Chris Siefert
Browse files

Tpetra: Adding support for non-member beginFill()/endFill() functions via variadic templating

parent 57d4dfd2
......@@ -53,6 +53,7 @@
#include <Teuchos_CommandLineProcessor.hpp>
#include <Teuchos_RCP.hpp>
#include <Teuchos_FancyOStream.hpp>
#include <Tpetra_Assembly_Helpers.hpp>
#include "fem_assembly_typedefs.hpp"
#include "fem_assembly_MeshDatabase.hpp"
......@@ -236,7 +237,7 @@ int executeInsertGlobalIndicesDP_(const comm_ptr_t& comm, const struct CmdLineOp
Teuchos::Array<Scalar> column_scalar_values(4); // scalar values for each column
// Loop over elements
rhs->beginFill();
Tpetra::beginFill(*rhs);
for(size_t element_gidx=0; element_gidx<mesh.getNumOwnedElements(); element_gidx++)
{
// Get the contributions for the current element
......@@ -277,7 +278,7 @@ int executeInsertGlobalIndicesDP_(const comm_ptr_t& comm, const struct CmdLineOp
{
// Global assemble the RHS
TimeMonitor timer(*TimeMonitor::getNewTimer("5) GlobalAssemble (RHS)"));
rhs->endFill();
Tpetra::endFill(*rhs);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment