Git Umzug

This commit is contained in:
Joachim Rupp
2020-08-03 14:46:25 +02:00
parent 10c76c7c96
commit 5d93e33fca
20 changed files with 1000762 additions and 35 deletions
+16 -11
View File
@@ -2,18 +2,23 @@
#include "vec3_container.hpp"
#include "Homogene.h"
#include "RearwallPotential.h"
#include "constants.h"
#include <fstream>
#include <memory>
SCENARIO("Test the vec3_container Constructor with Electric Field class", "[vec3_container.hpp]") {
SCENARIO("Test the vec3_container Constructor with Electric Field class", "[vec3_container]") {
GIVEN("Vec3 Container initilazed with a homogene electric field") {
Homogene electric_field(vec3(5,0,0));
Vec3_Container efeld(10, 10, 10, electric_field);
//vec3 value(5,0,0);
//vec3 value = blitz::TinyVector<double, 3>(5,0,0)
REQUIRE(efeld.get_data(vec3(0, 0, 0))[0] == 5 );
REQUIRE(efeld.get_data(vec3(0, 0, 0))[1] == 0 );
REQUIRE(efeld.get_data(vec3(0, 0, 0))[2] == 0 );
RearwallPotential electric_field(r_WGTS_m*100, z_WGTS_end_m*100, 10.0, vec3(0, 0, 0), 0.10, 1000, 1e-15, true);
Vec3_Container efeld(1000, 50, 20, electric_field);
THEN("The correct value is returned and saved to file. Look at that file.") {
}
REQUIRE(true);
}
}
}