Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102485378
Iterate.h
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
Fri, Feb 21, 05:16
Size
1 KB
Mime Type
text/x-c++
Expires
Sun, Feb 23, 05:16 (2 d)
Engine
blob
Format
Raw Data
Handle
24329738
Attached To
rGOOSEFEM GooseFEM
Iterate.h
View Options
/* =================================================================================================
(c - GPLv3) T.W.J. de Geus (Tom) | tom@geus.me | www.geus.me | github.com/tdegeus/GooseFEM
================================================================================================= */
#ifndef XGOOSEFEM_ITERATE_H
#define XGOOSEFEM_ITERATE_H
// -------------------------------------------------------------------------------------------------
#include "GooseFEM.h"
// ======================================= xGooseFEM::Iterate =======================================
namespace
xGooseFEM
{
namespace
Iterate
{
// -------------------------------------------------------------------------------------------------
class
StopList
{
private:
// list with residuals
std
::
vector
<
double
>
m_res
;
public:
// constructors
StopList
(
size_t
n
=
1
);
// reset all residuals to infinity (and change the number of residuals to check)
void
reset
();
void
reset
(
size_t
n
);
// update list of residuals, return true if all residuals are below the tolerance
bool
stop
(
double
res
,
double
tol
);
};
// -------------------------------------------------------------------------------------------------
}}
// namespace ...
// =================================================================================================
#endif
Event Timeline
Log In to Comment