Commit dc82a830 authored by steffen.schotthoefer's avatar steffen.schotthoefer
Browse files

Code restructuring and file renaming

parent 952e370d
Pipeline #91206 failed with stages
in 24 minutes and 35 seconds
......@@ -3,7 +3,7 @@
#include <cmath>
#include "solvers/solver.h"
#include "solvers/solverbase.h"
class PNSolver : public Solver
{
......
......@@ -3,7 +3,7 @@
#include <mpi.h>
#include "solvers/solver.h"
#include "solvers/solverbase.h"
class SNSolver : public Solver
{
......
......@@ -3,7 +3,7 @@
#include <mpi.h>
#include "solvers/solver.h"
#include "solvers/solverbase.h"
class SNSolverMPI : public Solver
{
......
#include <mpi.h>
#include "io.h"
#include "solvers/solver.h"
#include "solvers/solverbase.h"
#include "settings/config.h"
......
#include "solvers/solver.h"
#include "solvers/solverbase.h"
#include "io.h"
#include "mesh.h"
#include "quadratures/quadraturebase.h"
......
% ---- File specifications ----
OUTPUT_DIR = ../../result
OUTPUT_FILE = rtsn_test_linesource
OUTPUT_FILE = rtsn_test_linesource_PN
LOG_DIR = ../../result/logs
MESH_FILE = linesource.su2
......@@ -8,8 +8,9 @@ MESH_FILE = linesource.su2
CFL_NUMBER = 0.5
TIME_FINAL = 0.5
PROBLEM = LINESOURCE
SOLVER = PN_SOLVER
% ---- Boundary Conditions ----
BC_NEUMANN = ( void )
QUAD_TYPE = LEBEDEV
QUAD_ORDER = 15
QUAD_TYPE = MONTE_CARLO
QUAD_ORDER = 4
......@@ -4,7 +4,7 @@
#include "catch.hpp"
#include "mesh.h"
#include "settings/config.h"
#include "solver.h"
#include "solvers/solverbase.h"
using vtkUnstructuredGridReaderSP = vtkSmartPointer<vtkUnstructuredGridReader>;
......@@ -27,7 +27,7 @@ std::vector<double> readVTKFile( std::string filename ) {
return data;
}
TEST_CASE( "checkerboard", "[testcases]" ) {
TEST_CASE( "checkerboard_SN", "[testcases]" ) {
char config_file_name[MAX_STRING_SIZE] = "../tests/input/checkerboard.cfg";
Config* config = new Config( config_file_name );
......@@ -45,7 +45,7 @@ TEST_CASE( "checkerboard", "[testcases]" ) {
}
}
TEST_CASE( "linesource", "[testcases]" ) {
TEST_CASE( "linesource_SN", "[testcases]" ) {
char config_file_name[MAX_STRING_SIZE] = "../tests/input/linesource.cfg";
Config* config = new Config( config_file_name );
......@@ -62,3 +62,21 @@ TEST_CASE( "linesource", "[testcases]" ) {
REQUIRE( std::fabs( test[i] - reference[i] ) < eps );
}
}
// TEST_CASE( "linesource_PN", "[testcases]" ) {
// char config_file_name[MAX_STRING_SIZE] = "../tests/input/linesource_PN.cfg";
//
// Config* config = new Config( config_file_name );
// Solver* solver = Solver::Create( config );
// solver->Solve();
// solver->Save();
//
// auto test = readVTKFile( "../result/rtsn_test_linesource_PN.vtk" );
// auto reference = readVTKFile( "../tests/input/linesource_reference_PN.vtk" );
//
// double eps = 1e-3;
// REQUIRE( test.size() == reference.size() );
// for( unsigned i = 0; i < test.size(); ++i ) {
// REQUIRE( std::fabs( test[i] - reference[i] ) < eps );
// }
//}
#include <numeric>
#include "catch.hpp"
#include "fluxes/numericalflux.h"
#include "io.h"
#include "mesh.h"
#include "numericalflux.h"
#include "settings/config.h"
#include "settings/globalconstants.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment