Skip to content

Commit

Permalink
Merge branch 'master' into modelImport
Browse files Browse the repository at this point in the history
  • Loading branch information
GPayne committed Dec 7, 2015
2 parents 9821c19 + d35c270 commit c147009
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/examples/example1.cu
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ int main(int argc, char** argv)
// default values are not what we desire.
FEMSolver cfg;
bool zero_based = false;
std::string Aname = "test.mat";
cfg.filename_ = "../src/test/test_data/CubeMesh_size256step16";
for (int i = 0; i < argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
Expand All @@ -28,6 +29,10 @@ int main(int argc, char** argv)
if (i + 1 >= argc) break;
cfg.filename_ = std::string(argv[i + 1]);
i++;
} else if (strcmp(argv[i], "-A") == 0) {
if (i + 1 >= argc) break;
Aname = std::string(argv[i + 1]);
i++;
} else if (strcmp(argv[i], "-z") == 0) {
zero_based = true;
}
Expand Down Expand Up @@ -87,7 +92,7 @@ int main(int argc, char** argv)
cusp::multiply(identity, my_A, out);
A_h = Matrix_ell_h(out);

if(FEMSolver::readMatlabSparseMatrix("mysparse.mat",&test)) {
if(FEMSolver::readMatlabSparseMatrix(Aname.c_str(),&test)) {
std::cerr << "failed to read matlab file." << std::endl;
}
//************************ DEBUG*/
Expand Down

0 comments on commit c147009

Please sign in to comment.