Commit 57cc7857 authored by Malte Heithoff's avatar Malte Heithoff

Delete LoopTest Build

parent fc0c3c1e
Pipeline #392879 failed with stage
in 1 minute and 18 seconds
cmake_minimum_required(VERSION 3.0)
enable_language(CXX)
set(SERIALLOOPINCLUDE target/generated-sources-cpp/serialLoop)
set(SIMPLELOOPINCLUDE target/generated-sources-cpp/simpleLoop)
set(OSCILLATIONINCLUDE target/generated-sources-cpp/oscillation)
set(PARALLELLOOPINCLUDE target/generated-sources-cpp/parallelLoop)
set(OSCILLATIONASODESYMBOLINCLUDE target/generated-sources-cpp/oscillationAsODESymbol)
add_subdirectory(${SERIALLOOPINCLUDE})
add_subdirectory(${SIMPLELOOPINCLUDE})
add_subdirectory(${OSCILLATIONINCLUDE})
#add_subdirectory(${PARALLELLOOPINCLUDE})
add_subdirectory(${OSCILLATIONASODESYMBOLINCLUDE})
add_subdirectory(looptest)
\ No newline at end of file
@ECHO OFF
if exist build del /F /Q /S build > nul
mkdir build
cd build
@ECHO ON
cmake ..
cmake --build . --config release
cd ..
\ No newline at end of file
rm -rf build
mkdir build && cd build
cmake ..
cmake --build . --config release
cd ..
\ No newline at end of file
cmake_minimum_required(VERSION 3.5)
project(LoopTest CXX)
set(CMAKE_CXX_STANDARD 11)
add_executable(Oscillation mainOscillation.cpp)
target_include_directories(Oscillation PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(Oscillation de_monticore_lang_monticar_semantics_loops_oscillation ${LIBS})
export(TARGETS Oscillation FILE Oscillation.cmake)
add_executable(SerialLoop mainSerialLoop.cpp)
target_include_directories(SerialLoop PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(SerialLoop de_monticore_lang_monticar_semantics_loops_serialLoop ${LIBS})
export(TARGETS SerialLoop FILE SerialLoop.cmake)
add_executable(SimpleLoop mainSimpleLoop.cpp)
target_include_directories(SimpleLoop PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(SimpleLoop de_monticore_lang_monticar_semantics_loops_simpleLoop ${LIBS})
export(TARGETS SimpleLoop FILE SimpleLoop.cmake)
#add_executable(ParallelLoop mainParallelLoop.cpp)
#target_include_directories(ParallelLoop PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
#target_link_libraries(ParallelLoop de_monticore_lang_monticar_semantics_loops_parallelLoop ${LIBS})
#export(TARGETS ParallelLoop FILE ParallelLoop.cmake)
add_executable(OscillationAsODESymbol mainOscillationAsODESymbol.cpp)
target_include_directories(OscillationAsODESymbol PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(OscillationAsODESymbol de_monticore_lang_monticar_semantics_loops_oscillationAsODESymbol ${LIBS})
export(TARGETS OscillationAsODESymbol FILE OscillationAsODESymbol.cmake)
#include "de_monticore_lang_monticar_semantics_loops_oscillation.h"
#include "ExecutionStepper.h"
int main(int argc, char** argv)
{
de_monticore_lang_monticar_semantics_loops_oscillation instance;
instance.init();
int i;
for (i=1; i<atof(argv[1]); i++) {
instance.execute();
std::cout << "t = " << getCurrentTime() << ":\t " << instance.output << "\n";
}
return 0;
}
\ No newline at end of file
#include "de_monticore_lang_monticar_semantics_loops_oscillationAsODESymbol.h"
#include "ExecutionStepper.h"
int main(int argc, char** argv)
{
de_monticore_lang_monticar_semantics_loops_oscillationAsODESymbol instance;
int i;
for (i=1; i<atof(argv[1]); i++) {
double realResult = 2*cos((sqrt((10))*getCurrentTime()/5));
instance.execute();
std::cout << "t = " << getCurrentTime() << ":\t " << instance.x << " \t error: \t " << realResult - instance.x << "\n";
}
return 0;
}
\ No newline at end of file
#include "de_monticore_lang_monticar_semantics_loops_parallelLoop.h"
#include "ExecutionStepper.h"
int main(int argc, char** argv)
{
de_monticore_lang_monticar_semantics_loops_parallelLoop instance;
instance.init();
int i;
for (i=1; i<argc; i++) {
instance.input = atof(argv[i]);
instance.execute();
std::cout << "t = " << getCurrentTime() << ":\t " << instance.output << "\n";
}
return 0;
}
\ No newline at end of file
#include "de_monticore_lang_monticar_semantics_loops_serialLoop.h"
#include "ExecutionStepper.h"
int main(int argc, char** argv)
{
de_monticore_lang_monticar_semantics_loops_serialLoop instance;
instance.init();
int i;
for (i=1; i<argc; i++) {
instance.input = atof(argv[i]);
instance.execute();
std::cout << "t = " << getCurrentTime() << ":\t " << instance.output << "\n";
}
return 0;
}
\ No newline at end of file
#include "de_monticore_lang_monticar_semantics_loops_simpleLoop.h"
#include "ExecutionStepper.h"
int main(int argc, char** argv)
{
de_monticore_lang_monticar_semantics_loops_simpleLoop instance;
instance.init();
int i;
for (i=1; i<argc; i++) {
instance.input = atof(argv[i]);
instance.execute();
std::cout << "t = " << getCurrentTime() << ":\t " << instance.output << "\n";
}
return 0;
}
\ No newline at end of file
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