Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 4283: update anasazi unit tests involving Tpetra to use StaticProfile #4351

Merged
merged 1 commit into from
Feb 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int main(int argc, char *argv[])

// create map
RCP<const Map<> > map = rcp (new Map<> (dim,0,comm));
RCP<CrsMatrix<ST> > K = rcp (new CrsMatrix<ST> (map, 4));
RCP<CrsMatrix<ST> > K = rcp (new CrsMatrix<ST> (map, 4, Tpetra::StaticProfile));
int base = MyPID*ROWS_PER_PROC;
if (MyPID != NumImages-1) {
for (int i=0; i<ROWS_PER_PROC; ++i) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int main(int argc, char *argv[])

// create map
RCP<const Map<> > map = rcp (new Map<> (dim,0,comm));
RCP<CrsMatrix<ST> > K = rcp (new CrsMatrix<ST> (map, 4));
RCP<CrsMatrix<ST> > K = rcp (new CrsMatrix<ST> (map, 4, Tpetra::StaticProfile));
int base = MyPID*ROWS_PER_PROC;
if (MyPID != NumImages-1) {
for (int i=0; i<ROWS_PER_PROC; ++i) {
Expand Down
2 changes: 1 addition & 1 deletion packages/anasazi/tpetra/test/IRTR/cxx_main_lap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int main(int argc, char *argv[])

// create map
RCP<const Map<> > map = rcp (new Map<> (dim, 0, comm));
RCP<CrsMatrix<ST> > K = rcp(new CrsMatrix<ST>(map,4));
RCP<CrsMatrix<ST> > K = rcp(new CrsMatrix<ST>(map,4,Tpetra::StaticProfile));
int base = MyPID*ROWS_PER_PROC;
if (MyPID != NumImages-1) {
for (int i=0; i<ROWS_PER_PROC; ++i) {
Expand Down
2 changes: 1 addition & 1 deletion packages/anasazi/tpetra/test/MVOPTester/cxx_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ namespace { // (anonymous)
template<class Scalar, class O1, class O2>
RCP<CrsMatrix<Scalar,O1,O2,Node> > constructDiagMatrix(const RCP<const Map<O1,O2,Node> > &map)
{
RCP<CrsMatrix<Scalar,O1,O2,Node> > op = rcp( new CrsMatrix<Scalar,O1,O2,Node>(map,1) );
RCP<CrsMatrix<Scalar,O1,O2,Node> > op = rcp( new CrsMatrix<Scalar,O1,O2,Node>(map,1,Tpetra::StaticProfile) );
for (size_t i=0; i<map->getNodeNumElements(); ++i) {
op->insertGlobalValues(map->getGlobalElement(i),tuple(map->getGlobalElement(i)), tuple(ScalarTraits<Scalar>::one()));
}
Expand Down