MCPcopy Create free account
hub / github.com/FreeFem/FreeFem-sources / DefSolver

Function DefSolver

src/femlib/SparseLinearSolver.cpp:162–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161template<class R>
162void DefSolver(Stack stack, VirtualMatrix<int,R> & A,const Data_Sparse_Solver & ds)
163{
164 typename VirtualMatrix<int,R>::VSolver * solver=0;
165 HashMatrix<int,R>* AH(dynamic_cast<HashMatrix<int,R> *>(&A));
166 ffassert(AH);
167
168 solver = NewVSolver<int,R>(*AH,ds,stack);
169
170 if(solver)
171 A.SetSolver(solver,true);
172 else
173 CompileError("SetSolver: type resolution unknown");
174
175
176}
177
178typedef double R;
179typedef complex<double> C;

Callers 2

evalMethod · 0.85
evalCompositeMethod · 0.85

Calls 2

CompileErrorFunction · 0.85
SetSolverMethod · 0.80

Tested by

no test coverage detected