Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64224692
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
Sat, May 25, 11:10
Size
698 B
Mime Type
text/x-c++
Expires
Mon, May 27, 11:10 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17848396
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 GOOSEFEM_ITERATE_H
#define GOOSEFEM_ITERATE_H
#include "config.h"
namespace
GooseFEM
{
namespace
Iterate
{
class
StopList
{
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
);
private:
// list with residuals
std
::
vector
<
double
>
m_res
;
};
}
// namespace Iterate
}
// namespace GooseFEM
#include "Iterate.hpp"
#endif
Event Timeline
Log In to Comment