Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F87602798
non_linear_solver_linear.cc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Oct 13, 15:42
Size
2 KB
Mime Type
text/x-c
Expires
Tue, Oct 15, 15:42 (2 d)
Engine
blob
Format
Raw Data
Handle
21542616
Attached To
rAKA akantu
non_linear_solver_linear.cc
View Options
/**
* @file non_linear_solver_linear.cc
*
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
* @date Tue Aug 25 00:57:00 2015
*
* @brief Implementation of the default NonLinearSolver
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "non_linear_solver_linear.hh"
#include "dof_manager_default.hh"
#include "solver_callback.hh"
#include "static_communicator.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_AKANTU__
/* -------------------------------------------------------------------------- */
NonLinearSolverLinear
::
NonLinearSolverLinear
(
DOFManagerDefault
&
dof_manager
,
const
NonLinearSolverType
&
non_linear_solver_type
,
const
ID
&
id
,
UInt
memory_id
)
:
NonLinearSolver
(
dof_manager
,
non_linear_solver_type
,
id
,
memory_id
),
dof_manager
(
dof_manager
),
solver
(
dof_manager
,
"J"
,
id
+
":sparse_solver"
,
memory_id
)
{
this
->
supported_type
.
insert
(
_nls_linear
);
this
->
checkIfTypeIsSupported
();
}
/* -------------------------------------------------------------------------- */
NonLinearSolverLinear
::~
NonLinearSolverLinear
()
{}
/* ------------------------------------------------------------------------ */
void
NonLinearSolverLinear
::
solve
(
SolverCallback
&
solver_callback
)
{
solver_callback
.
predictor
();
solver_callback
.
assembleResidual
();
solver_callback
.
assembleJacobian
();
this
->
solver
.
solve
();
solver_callback
.
corrector
();
}
/* -------------------------------------------------------------------------- */
__END_AKANTU__
Event Timeline
Log In to Comment