Commit 70119e23 authored by Steffen Schotthöfer's avatar Steffen Schotthöfer
Browse files

commented out mn and pn test cases(will be changed with merge anyways)....

commented out mn and pn test cases(will be changed with merge anyways). changed size of waterphantom test image conversion
parent 133012e2
/*!
* @file io.h
* @brief Creates required input from given config file
* @file: io.h
* @brief: Creates required input from given config file
* @author: J. Wolters
*/
#ifndef IO_H
#define IO_H
......@@ -14,7 +16,7 @@ class Config;
class Mesh;
/*!
* @brief
* @brief
* @param[in] fileName -name of the file that results shall be exported to
* @param[in] results - results of computation
* @param[in] fieldNames - specify different output values
......@@ -30,7 +32,6 @@ void ExportVTK( const std::string fileName,
*/
Mesh* LoadSU2MeshFromFile( const Config* settings );
/*!
* @brief Parses arguments given when calling program from command line
* @param[in] argc - number arguments
......
/*!
* @file: reconstructor.h
* @brief: Class to create second order (in space) schemes for the advection solver.
* This class is currently unused. But in the future, the second order capabilities of the code
* may be stored here.
* @author: T. Xiao
*/
#ifndef RECONSTRUCTOR_H
#define RECONSTRUCTOR_H
#include "common/config.h"
#include "common/typedef.h"
#include <string>
class Config;
class Reconstructor
{
......@@ -13,7 +22,7 @@ class Reconstructor
*/
Reconstructor( Config* settings );
/** Method 1: structured developing
/*! Method 1: structured developing
* @brief Slope of angular flux psi inside a given cell
* @param Omega fixed ordinate for flux computation
* @param psiL left solution state
......
#include "reconstructor.h"
#include "common/config.h"
Reconstructor::Reconstructor( Config* settings ) {}
double FortSign( double a, double b ) {
if( b > 0.0 ) return abs(a);
if( b < 0.0 ) return -abs(a);
double FortSign( double a, double b ) {
if( b > 0.0 ) return abs( a );
if( b < 0.0 ) return -abs( a );
return 0.0;
}
......
......@@ -66,6 +66,7 @@ TEST_CASE( "linesource_SN", "[validation_tests]" ) {
}
}
/*
TEST_CASE( "linesource_PN", "[validation_tests]" ) {
char config_file_name[MAX_STRING_SIZE] = "../tests/input/linesource_PN.cfg";
......@@ -101,3 +102,4 @@ TEST_CASE( "linesource_MN", "[validation_tests]" ) {
REQUIRE( std::fabs( test[i] - reference[i] ) < eps );
}
}
*/
......@@ -13,7 +13,7 @@ TEST_CASE( "convert image data to grayscale matrix", "[image I/O]" ) {
Config* config = new Config( config_file_name ); // just to init spdlog
std::string testImage = "../tests/input/phantom.png";
std::string testImage = "../tests/input/mini_phantom.png";
std::string testMesh = config->GetMeshFile();
Matrix gsImage = createSU2MeshFromImage( testImage, testMesh );
......
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