Skip to content

Commit

Permalink
WIP small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
endJunction committed Jan 14, 2016
1 parent 36a5708 commit 4705b6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ProcessLib/Process.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Process
#endif

// create global vectors and linear solver
createLinearSolver(*_local_to_global_index_map, getLinearSolverName());
createLinearSolver(getLinearSolverName());

DBUG("Create global assembler.");
_global_assembler.reset(
Expand Down Expand Up @@ -141,10 +141,10 @@ class Process
mat_opt.d_nz = pmesh.getMaximumNConnectedNodesToNode();
mat_opt.o_nz = mat_opt.d_nz;
const std::size_t num_unknowns =
_local_to_global_index_map.dofSizeGlobal();
_local_to_global_index_map->dofSizeGlobal();
_A.reset(_global_setup.createMatrix(num_unknowns, mat_opt));
#else
const std::size_t num_unknowns = _local_to_global_index_map.dofSize();
const std::size_t num_unknowns = _local_to_global_index_map->dofSize();
_A.reset(_global_setup.createMatrix(num_unknowns));
#endif
_x.reset(_global_setup.createVector(num_unknowns));
Expand All @@ -158,7 +158,7 @@ class Process
void computeSparsityPattern()
{
_sparsity_pattern = std::move(AssemblerLib::computeSparsityPattern(
_local_to_global_index_map, _mesh));
*_local_to_global_index_map, _mesh));
}

protected:
Expand Down

0 comments on commit 4705b6e

Please sign in to comment.