preCICE v3.2.0
Loading...
Searching...
No Matches
ExampleTests.cpp File Reference
#include <Eigen/Core>
#include <memory>
#include "com/Communication.hpp"
#include "com/SharedPointer.hpp"
#include "m2n/M2N.hpp"
#include "math/constants.hpp"
#include "testing/TestContext.hpp"
#include "testing/Testing.hpp"
#include "utils/IntraComm.hpp"
Include dependency graph for ExampleTests.cpp:

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (SingleProcessor)
 This test runs on a single processor.
 BOOST_AUTO_TEST_CASE (NumericalTolerance, *boost::unit_test::tolerance(1e-4))
 Test with a modified numerical tolerance.
 BOOST_AUTO_TEST_CASE (FourProcTests)
 Test that requires 4 processors.
 BOOST_AUTO_TEST_CASE (TwoProcTests)
 Test that runs on 2 processors.
 PRECICE_TEST_SETUP (""_on(4_ranks).setupIntraComm()) BOOST_AUTO_TEST_CASE(FourProcTestsWithPrimaryCommmunication)
 Test that requires 4 processors and an intra-participant communication.
 PRECICE_TEST_SETUP ("A"_on(1_rank), "B"_on(2_ranks)) BOOST_AUTO_TEST_CASE(NamedContexts)
 Test that requires 2 participants "A" on 1 rank and "B" on 2 ranks.
 PRECICE_TEST_SETUP ("A"_on(1_rank), "B"_on(1_rank), Require::Events) BOOST_AUTO_TEST_CASE(TwoProcTestsWithM2NCommunication)
 Tests that requires an m2n communication.
 BOOST_AUTO_TEST_CASE (TwoProcTestsWithPETSc)
 PRECICE_TEST_SETUP ("Solid"_on(2_ranks), "Fluid"_on(2_ranks)) BOOST_AUTO_TEST_CASE(IntegrationTestsWithTwoParticipants)
 Integration tests with two participants.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/5]

BOOST_AUTO_TEST_CASE ( FourProcTests )

Test that requires 4 processors.

Definition at line 61 of file ExampleTests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/5]

BOOST_AUTO_TEST_CASE ( NumericalTolerance ,
* boost::unit_test::tolerance1e-4 )

Test with a modified numerical tolerance.

Definition at line 44 of file ExampleTests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/5]

BOOST_AUTO_TEST_CASE ( SingleProcessor )

This test runs on a single processor.

Definition at line 19 of file ExampleTests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/5]

BOOST_AUTO_TEST_CASE ( TwoProcTests )

Test that runs on 2 processors.

Definition at line 71 of file ExampleTests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/5]

BOOST_AUTO_TEST_CASE ( TwoProcTestsWithPETSc )

Definition at line 137 of file ExampleTests.cpp.

Here is the call graph for this function:

◆ PRECICE_TEST_SETUP() [1/4]

PRECICE_TEST_SETUP ( "" _on4_ranks).setupIntraComm()

Test that requires 4 processors and an intra-participant communication.

Definition at line 87 of file ExampleTests.cpp.

Here is the call graph for this function:

◆ PRECICE_TEST_SETUP() [2/4]

PRECICE_TEST_SETUP ( "A" _on1_rank,
"B" _on1_rank,
Require::Events  )

Tests that requires an m2n communication.

Definition at line 118 of file ExampleTests.cpp.

◆ PRECICE_TEST_SETUP() [3/4]

PRECICE_TEST_SETUP ( "A" _on1_rank,
"B" _on2_ranks )

Test that requires 2 participants "A" on 1 rank and "B" on 2 ranks.

Definition at line 97 of file ExampleTests.cpp.

◆ PRECICE_TEST_SETUP() [4/4]

PRECICE_TEST_SETUP ( "Solid" _on2_ranks,
"Fluid" _on2_ranks )

Integration tests with two participants.

Definition at line 153 of file ExampleTests.cpp.