Permalink
Browse files

no make_shared

  • Loading branch information...
1 parent 0a923be commit 2e0ad2730cee088d94ae1b68f3f55b0fcd7c9e4d @asartori86 asartori86 committed Jul 13, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/pidomus.cc
View
@@ -108,10 +108,10 @@ piDoMUS<dim, spacedim, LAC>::piDoMUS (const std::string &name,
interface.initialize_simulator (*this);
lambdas.set_functions_to_default();
- train_constraints[0] = SP(new ConstraintMatrix);
+ train_constraints[0] = SP(new ConstraintMatrix());
for (unsigned int i=1; i<n_matrices; ++i)
- train_constraints[i] = std::make_shared<ConstraintMatrix>(*train_constraints[0]);
+ train_constraints[i] = train_constraints[0];
for (unsigned int i=0; i<n_matrices; ++i)
{

0 comments on commit 2e0ad27

Please sign in to comment.