# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $^
+ @$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
# To make running the application somewhat independent of the actual
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $^
+ @$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
# To make running the application somewhat independent of the actual
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $^
+ @$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
# To make running the application somewhat independent of the actual
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $^
+ @$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
# To make running the application somewhat independent of the actual
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $^
+ @$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
# To make running the application somewhat independent of the actual
// inverted) and the relaxation
// factor into one object. This can
// be done like this:
- PreconditionRelaxation<>
- preconditioner(system_matrix,
- &SparseMatrix<double>::template precondition_SSOR<double>,
- 1.2);
+ PreconditionSSOR<> preconditioner;
+ preconditioner.initialize(system_matrix, 1.2);
// The default template parameters
// of the PreconditionRelaxation
// class are the matrix and the
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $^
+ @$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
# To make running the application somewhat independent of the actual
PrimitiveVectorMemory<> vector_memory;
SolverCG<> cg (solver_control, vector_memory);
- PreconditionRelaxation<>
- preconditioner(system_matrix,
- &SparseMatrix<double>::template precondition_SSOR<double>,
- 1.2);
+ PreconditionSSOR<> preconditioner;
+ preconditioner.initialize(system_matrix, 1.2);
cg.solve (system_matrix, solution, system_rhs,
preconditioner);
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $^
+ @$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
# To make running the application somewhat independent of the actual
PrimitiveVectorMemory<> vector_memory;
SolverCG<> cg (solver_control, vector_memory);
- PreconditionRelaxation<>
- preconditioner(system_matrix,
- &SparseMatrix<double>::template precondition_SSOR<double>,
- 1.2);
+ PreconditionSSOR<> preconditioner;
+ preconditioner.initialize(system_matrix, 1.2);
cg.solve (system_matrix, solution, system_rhs,
preconditioner);
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $^
+ @$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
# To make running the application somewhat independent of the actual
PrimitiveVectorMemory<> vector_memory;
SolverCG<> cg (solver_control, vector_memory);
- PreconditionRelaxation<>
- preconditioner(system_matrix,
- &SparseMatrix<double>::template precondition_SSOR<double>,
- 1.2);
+ PreconditionSSOR<> preconditioner;
+ preconditioner.initialize(system_matrix, 1.2);
cg.solve (system_matrix, solution, system_rhs,
preconditioner);
# if you call it without arguments.
$(target) : $(libraries)
@echo ============================ Linking $@
- @$(CXX) $(flags) -o $@ $^
+ @$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
# To make running the application somewhat independent of the actual
PrimitiveVectorMemory<> vector_memory;
SolverBicgstab<> bicgstab (solver_control, vector_memory);
- PreconditionRelaxation<>
- preconditioner(system_matrix,
- &SparseMatrix<double>::template precondition_Jacobi<double>,
- 1.0);
+ PreconditionJacobi<> preconditioner;
+ preconditioner.initialize(system_matrix, 1.0);
bicgstab.solve (system_matrix, solution, system_rhs,
preconditioner);