Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90319581
Iterate.cpp
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
Thu, Oct 31, 11:37
Size
856 B
Mime Type
text/x-c
Expires
Sat, Nov 2, 11:37 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22050873
Attached To
rGOOSEFEM GooseFEM
Iterate.cpp
View Options
#include <catch2/catch.hpp>
#include <xtensor/xrandom.hpp>
#include <xtensor/xmath.hpp>
#include <Eigen/Eigen>
#include <GooseFEM/GooseFEM.h>
#define ISCLOSE(a,b) REQUIRE_THAT((a), Catch::WithinAbs((b), 1.e-12));
TEST_CASE("GooseFEM::Iterate", "Iterate.h")
{
SECTION("StopList")
{
GooseFEM::Iterate::StopList stop(5);
REQUIRE(stop.stop(5.e+0, 1.e-3) == false);
REQUIRE(stop.stop(5.e+1, 1.e-3) == false);
REQUIRE(stop.stop(5.e-1, 1.e-3) == false);
REQUIRE(stop.stop(5.e-2, 1.e-3) == false);
REQUIRE(stop.stop(5.e-3, 1.e-3) == false);
REQUIRE(stop.stop(5.e-4, 1.e-3) == false);
REQUIRE(stop.stop(5.e-4, 1.e-3) == false);
REQUIRE(stop.stop(5.e-4, 1.e-3) == false);
REQUIRE(stop.stop(5.e-4, 1.e-3) == false);
REQUIRE(stop.stop(5.e-4, 1.e-3) == true);
}
}
Event Timeline
Log In to Comment