Liebe Gitlab-Nutzerin, lieber Gitlab-Nutzer,
es ist nun möglich sich mittels des ZIH-Logins/LDAP an unserem Dienst anzumelden. Die Konten der externen Nutzer:innen sind über den Reiter "Standard" erreichbar.
Die Administratoren


Dear Gitlab user,
it is now possible to log in to our service using the ZIH login/LDAP. The accounts of external users can be accessed via the "Standard" tab.
The administrators

Commit 09a8e7a8 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

initial commit of test suite

parent b8063b9f
project("AMDiS test suite")
cmake_minimum_required(VERSION 3.0)
find_package(AMDIS REQUIRED)
add_library(amdis INTERFACE)
if (AMDIS_INCLUDE_DIRS)
target_include_directories(amdis INTERFACE ${AMDIS_INCLUDE_DIRS})
endif (AMDIS_INCLUDE_DIRS)
if (AMDIS_COMPILEFLAGS)
target_compile_options(amdis INTERFACE ${AMDIS_COMPILEFLAGS})
endif (AMDIS_COMPILEFLAGS)
target_link_libraries(amdis INTERFACE ${AMDIS_LIBRARIES})
enable_testing()
# The check target compiles and runs the test_suite
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
# Add the unit_test_framework for some tests
find_package(Boost REQUIRED unit_test_framework)
add_subdirectory(seq)
if (AMDIS_HAS_PARALLEL_DOMAIN)
add_subdirectory(mpi)
endif (AMDIS_HAS_PARALLEL_DOMAIN)
add_subdirectory(other)
project("AMDiS test suite (seq)")
cmake_minimum_required(VERSION 2.8)
find_package(AMDIS REQUIRED)
if(AMDIS_FOUND)
message("amdis was found\n")
include(${AMDIS_USE_FILE})
SET(BASIS_LIBS ${AMDIS_LIBRARIES})
endif(AMDIS_FOUND)
find_package(Boost 1.42 REQUIRED)
if(Boost_FOUND)
list(APPEND AMDIS_INCLUDE_DIRS ${Boost_INCLUDE_DIR})
message("boost lib-dirs: ${Boost_LIBRARY_DIRS}")
message("use the boost dir: ${Boost_INCLUDE_DIR}")
if(WIN32)
message("the windows find_boost does not set the boost library paths, please set it")
SET(Boost_LIBRARY_DIRS CACHE PATH "The directory containing the boost libraries")
endif(WIN32)
list(APPEND BASIS_LIBS ${Boost_LIBRARY_DIRS}/libboost_unit_test_framework.so)
endif(Boost_FOUND)
set(TEST_DEPENDENCIES "")
file(GLOB sources src/*.cc)
foreach(s ${sources})
get_filename_component(swe ${s} NAME_WE)
add_executable(${swe} ${s})
target_link_libraries(${swe} ${BASIS_LIBS})
target_link_libraries(${swe} amdis ${Boost_LIBRARIES})
list(APPEND TEST_DEPENDENCIES ${swe})
endforeach(s)
add_test(NAME "RunTest0001" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND mpirun -np 16 test0001 test0001.dat.2d)
add_test(NAME "RunTest0002" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND mpirun -np 16 test0002 test0002.dat.2d)
add_test(NAME "RunTest0003" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND mpirun -np 16 test0003 test0003.dat.2d)
add_test(NAME "RunTest0004" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND mpirun -np 16 test0004 test0004.dat.2d)
add_test(NAME "RunTest0005" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND mpirun -np 16 test0005 test0005.dat.2d)
add_test(NAME "RunTest0006" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND mpirun -np 16 test0006 test0006.dat.2d)
add_test(NAME "RunTest0007" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND mpirun -np 4 test0007 test0007.dat.2d)
add_dependencies(check ${TEST_DEPENDENCIES})
#create the output dir
file(MAKE_DIRECTORY output)
set(TEST_DEPENDENCIES "")
if (AMDIS_HAS_PARALLEL_DOMAIN)
set(RUN_PARALLEL "mpirun -np 2")
else ()
set(RUN_PARALLEL "")
endif ()
add_executable(test_expr src/Test_Expressions.cc)
target_link_libraries(test_expr amdis)
if (NOT AMDIS_HAS_PARALLEL_DOMAIN)
add_test(NAME RunTestExpr_1d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND test_expr init/test_expr.dat.1d)
endif ()
add_test(NAME RunTestExpr_2d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${RUN_PARALLEL} test_expr init/test_expr.dat.2d)
add_test(NAME RunTestExpr_3d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${RUN_PARALLEL} test_expr init/test_expr.dat.3d)
list(APPEND TEST_DEPENDENCIES test_expr)
add_executable(test_basis src/Test_BasisFunction.cc)
target_link_libraries(test_basis amdis)
if (NOT AMDIS_HAS_PARALLEL_DOMAIN)
add_test(NAME RunTestBasis_1d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND test_basis init/test_basisFct.dat.1d)
endif ()
add_test(NAME RunTestBasis_2d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${RUN_PARALLEL} test_basis init/test_basisFct.dat.2d)
add_test(NAME RunTestBasis_3d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${RUN_PARALLEL} test_basis init/test_basisFct.dat.3d)
list(APPEND TEST_DEPENDENCIES test_basis)
add_executable(test_writer src/Test_Writer.cc)
target_link_libraries(test_writer amdis)
list(APPEND TEST_DEPENDENCIES test_writer)
add_executable(test_arh3 src/Test_Arh3.cc)
target_link_libraries(test_arh3 amdis)
list(APPEND TEST_DEPENDENCIES test_arh3)
add_executable(test_mat_vec src/Test_MatrixVectorOperations.cc)
target_link_libraries(test_mat_vec amdis)
list(APPEND TEST_DEPENDENCIES test_mat_vec)
add_executable(test_problemStat src/Test_ProblemStat.cc)
target_link_libraries(test_problemStat amdis)
if (NOT AMDIS_HAS_PARALLEL_DOMAIN)
add_test(NAME RunTestProblemStat_1d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND test_problemStat init/test_problemStat.dat.1d)
add_test(NAME RunTestProblemStat_2d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND test_problemStat init/test_problemStat.dat.2d)
add_test(NAME RunTestProblemStat_3d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND test_problemStat init/test_problemStat.dat.3d)
endif ()
list(APPEND TEST_DEPENDENCIES test_problemStat)
# parallel tests
if (AMDIS_HAS_PARALLEL_DOMAIN)
add_executable(test_synch src/Test_Synch.cc)
target_link_libraries(test_synch amdis)
add_test(NAME RunTestSynch_2d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND test_synch init/test_synch.dat.2d)
add_test(NAME RunTestSynch_3d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND test_synch init/test_synch.dat.3d)
list(APPEND TEST_DEPENDENCIES test_synch)
endif (AMDIS_HAS_PARALLEL_DOMAIN)
# tests if AMDiS-Extensions
if (AMDIS_NEED_EXTENSIONS)
add_executable(test_bg_mesh src/Test_BackgroundMesh2.cc)
target_link_libraries(test_bg_mesh amdis)
add_test(NAME RunTestBgMesh WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND test_bg_mesh init/test_bg_mesh.dat)
list(APPEND TEST_DEPENDENCIES test_bg_mesh)
add_executable(test_views src/Test_Views.cc)
target_link_libraries(test_views amdis)
add_test(NAME RunTestViews_2d WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND test_views init/test_views.dat.2d)
list(APPEND TEST_DEPENDENCIES test_views)
add_executable(test_vtk src/Test_Vtk.cc)
target_link_libraries(test_vtk amdis)
list(APPEND TEST_DEPENDENCIES test_vtk)
endif (AMDIS_NEED_EXTENSIONS)
add_dependencies(check ${TEST_DEPENDENCIES})
dimension of world: 3
level of information: 0
break on missing tag: 0
%========== dow 3 dim 3 ==========%
sphere33Mesh->macro file name: ./macro/dow3_dim3.3d
sphere33Mesh->global refinements: 10
sphere33->mesh: sphere33Mesh
sphere33->dim: 3
sphere33->components: 3
sphere33->polynomial degree[0]: 3
sphere33->polynomial degree[1]: 2
sphere33->polynomial degree[2]: 2
sphere33->solver: cg
sphere33->output->filename: output/sphere33.3d
%sphere33->output->ARH format: 1
sphere33->output->ARH2 format: 1
%parallel->log main rank: 0
%========== dow 3 dim 3 - b ==========%
sphere33_bMesh->macro file name: ./macro/dow3_dim3.3d
sphere33_bMesh->global refinements: 11
sphere33_b->mesh: sphere33_bMesh
sphere33_b->dim: 3
sphere33_b->components: 3
sphere33_b->polynomial degree[0]: 3
sphere33_b->polynomial degree[1]: 2
sphere33_b->polynomial degree[2]: 2
sphere33_b->solver: cg
sphere33_b->output->filename: output/sphere33.3d
%sphere33_b->output->ARH format: 1
sphere33_b->output->ARH2 format: 1
%========== dow 3 dim 3 - c ==========%
sphere33_cMesh->macro file name: ./macro/dow3_dim3.3d
sphere33_cMesh->global refinements: 10
sphere33_c->mesh: sphere33_cMesh
sphere33_c->dim: 3
sphere33_c->components: 3
sphere33_c->polynomial degree[0]: 3
sphere33_c->polynomial degree[1]: 2
sphere33_c->polynomial degree[2]: 1
sphere33_c->solver: cg
sphere33_c->output->filename: output/sphere33.3d
%sphere33_c->output->ARH format: 1
sphere33_c->output->ARH2 format: 1
%========== dow 3 dim 3 - d ==========%
sphere33_dMesh->macro file name: ./macro/dow3_dim3.3d
sphere33_dMesh->global refinements: 10
sphere33_d->mesh: sphere33_dMesh
sphere33_d->dim: 3
sphere33_d->components: 2
sphere33_d->polynomial degree[0]: 3
sphere33_d->polynomial degree[1]: 2
sphere33_d->solver: cg
sphere33_d->output->filename: output/sphere33.3d
sphere33_d->output->ARH format: 1
sphere33_d->output->ARH2 format: 1
%========== dow 3 dim 2 ==========%
sphere32Mesh->macro file name: ./macro/dow3_dim2.3d
sphere32Mesh->global refinements: 5
sphere32->mesh: sphere32Mesh
sphere32->dim: 2
sphere32->components: 3
sphere32->polynomial degree[0]: 1
sphere32->polynomial degree[1]: 1
sphere32->polynomial degree[2]: 1
sphere32->solver: cg
sphere32->output->filename: output/sphere32.3d
%sphere32->output->ParaView format: 1
sphere32->output->ARH format: 1
sphere32->output->ARH2 format: 1
%parallel->repartitioning: parmetis
%parallel->box partitioning: 1
%========== dow 3 dim 1 ==========%
sphere31Mesh->macro file name: ./macro/dow3_dim1.3d
sphere31Mesh->global refinements: 5
sphere31->mesh: sphere31Mesh
sphere31->dim: 1
sphere31->components: 1
sphere31->polynomial degree[0]: 1
sphere31->solver: cg
sphere31->output->filename: output/sphere31.3d
sphere31->output->ParaView format: 1
sphere31->output->ARH format: 1
sphere31->output->ARH2 format: 1
%========= test4 ==============%
elliptMesh->macro file name: ./macro/macro.refined.3d
elliptMesh->global refinements: 0
%wavebox->filename: ./macro/wavebox3.arh
ellipt->mesh: elliptMesh
ellipt->dim: 3
ellipt->components: 3
ellipt->polynomial degree[0]: 1
ellipt->polynomial degree[1]: 1
ellipt->polynomial degree[2]: 2
ellipt->solver: cg
ellipt->output->filename: output/refined_ellipt.3d
ellipt->output->ARH format: 1
ellipt->output->ARH2 format: 1
dimension of world: 2
elliptMesh->macro file name: ./macro/macro.stand.2d
elliptMesh->global refinements: 0
ellipt->mesh: elliptMesh
ellipt->dim: 2
ellipt->components: 1
ellipt->polynomial degree[0]: 1
ellipt->solver: cg
ellipt->solver->ell: 1
ellipt->solver->max iteration: 1000
ellipt->solver->tolerance: 1.e-8
ellipt->solver->info: 10
ellipt->solver->left precon: diag
ellipt->solver->right precon: no
ellipt->estimator[0]: residual
ellipt->estimator[0]->error norm: H1_NORM % 1: H1_NORM, 2: L2_NORM
ellipt->estimator[0]->C0: 0.1 % constant of element residual
ellipt->estimator[0]->C1: 0.1 % constant of jump residual
ellipt->marker[0]->strategy: 2 % 0: no adaption 1: GR 2: MS 3: ES 4:GERS
ellipt->marker[0]->MSGamma: 0.5
ellipt->adapt[0]->tolerance: 1e-4
ellipt->adapt[0]->refine bisections: 2
ellipt->adapt->max iteration: 10
ellipt->output->filename: output/arh3data.2d
ellipt->output->ARH3 format: 1
ellipt->output->create subdirectory: 1
dimension of world: 1
level of information: 0
break on missing tag: 0
mesh_basis->macro file name: ./macro/macro.stand.1d
mesh_basis->global refinements: 0
test_basis->mesh: mesh_basis
test_basis->dim: 1
test_basis->polynomial degree[0]: 4
test_basis->components: 1
test_basis->solver: cg
\ No newline at end of file
dimension of world: 2
level of information: 0
break on missing tag: 0
mesh_basis->macro file name: ./macro/macro.stand.2d
mesh_basis->global refinements: 0
test_basis->mesh: mesh_basis
test_basis->dim: 2
test_basis->components: 1
test_basis->polynomial degree[0]: 1
test_basis->solver: cg
\ No newline at end of file
dimension of world: 3
level of information: 0
break on missing tag: 0
mesh_basis->macro file name: ./macro/macro.stand.3d
mesh_basis->global refinements: 0
test_basis->mesh: mesh_basis
test_basis->dim: 3
test_basis->polynomial degree[0]: 4
test_basis->components: 1
test_basis->solver: cg
\ No newline at end of file
dimension of world: 2
level of information: 0
break on missing tag: 0
% ============ VARIABLES ===================
backgroundMesh->enabled: 0
backgroundMesh->N: 128*128
backgroundMesh->min_corner: [-1.1,-1.1]
backgroundMesh->max_corner: [1.1,1.1]
backgroundMesh->evaluation accuracy: 0
box->nr of nearest data: 10
KD-Tree->enabled: 1
KD-Tree->eps: 0.0
% ============= PROBLEM-SPACES ==================================
test_bg_mesh->components: 1
test_bg_mesh->polynomial degree[0]: 1
test_bg_mesh->dim: 2
test_bg_mesh->solver: cg
test_bg_mesh->mesh: mesh_bg_mesh
test_bg_mesh2->components: 1
test_bg_mesh2->polynomial degree[0]: 1
test_bg_mesh2->dim: 2
test_bg_mesh2->solver: cg
test_bg_mesh2->mesh: mesh_bg_mesh2
% =================== MESH ================================
mesh_bg_mesh->macro file name: macro/macro.square.2d
mesh_bg_mesh->global refinements: 12
mesh_bg_mesh->check: 0
mesh_bg_mesh2->macro file name: macro/macro.square.2d
mesh_bg_mesh2->global refinements: 12
mesh_bg_mesh2->check: 0
WAIT: 1
dimension of world: 2
level of information: 0
break on missing tag: 0
% ============ VARIABLES ===================
backgroundMesh->enabled: 1
backgroundMesh->N: 128*128
backgroundMesh->min_corner: [-1.1,-1.1]
backgroundMesh->max_corner: [1.1,1.1]
backgroundMesh->evaluation accuracy: 0
% ============= PROBLEM-SPACES ==================================
test->components: 1
test->polynomial degree[0]: 1
test->dim: 1
test->solver: umfpack
test->mesh: mesh
test2->components: 1
test2->polynomial degree[0]: 1
test2->dim: 2
test2->solver: umfpack
test2->mesh: mesh2
% =================== MESH ================================
mesh->macro file name: input/circles.2d
mesh->global refinements: 0
mesh->check: 0
mesh2->macro file name: macro/macro.square.2d
mesh2->global refinements: 0
mesh2->check: 0
mesh->refinement->initial level: 12
mesh->refinement->level in inner domain: 5
mesh->refinement->level in outer domain: 5
mesh->refinement->level on interface: 16
mesh->refinement->interface width: 0.01
mesh->refinement->fade out width: 0
mesh->refinement->sign in inner domain: -1
WAIT: 1
dimension of world: 1
level of information: 0
break on missing tag: 0
mesh_expr->macro file name: ./macro/macro.stand.1d
mesh_expr->global refinements: 0
test_expr->mesh: mesh_expr
test_expr->dim: 1
test_expr->components: 1
test_expr->polynomial degree[0]: 2
test_expr->solver: cg
dimension of world: 2
level of information: 0
break on missing tag: 0
mesh_expr->macro file name: ./macro/macro.stand.2d
mesh_expr->global refinements: 0
test_expr->mesh: mesh_expr
test_expr->dim: 2
test_expr->components: 1
test_expr->polynomial degree[0]: 2
test_expr->solver: cg
\ No newline at end of file
dimension of world: 3
level of information: 0
break on missing tag: 0
mesh_expr->macro file name: ./macro/macro.stand.3d
mesh_expr->global refinements: 0
test_expr->mesh: mesh_expr
test_expr->dim: 3
test_expr->components: 1
test_expr->polynomial degree[0]: 2
test_expr->solver: cg
\ No newline at end of file
dimension of world: 3
level of information: 0
break on missing tag: 0
% ============ VARIABLES ===================
backgroundMesh->enabled: 1
backgroundMesh->N: 32*32*32
backgroundMesh->min_corner: [-1.1,-1.1,-1.1]
backgroundMesh->max_corner: [1.1,1.1,1.1]
backgroundMesh->evaluation accuracy: 0
% ============= PROBLEM-SPACES ==================================
test->components: 1
test->polynomial degree[0]: 1
test->dim: 3
test->solver: umfpack
test->mesh: mesh
% =================== MESH ================================
mesh->macro file name: macro/macro.stand.3d
mesh->global refinements: 0
mesh->check: 0
mesh->refinement->initial level: 12
mesh->refinement->level in inner domain: 0
mesh->refinement->level in outer domain: 0
mesh->refinement->level on interface: 18
WAIT: 1
dimension of world: 1
level of information: 0
break on missing tag: 0
mesh_p->macro file name: ./macro/macro.stand.1d
mesh_p->global refinements: 2
test_problemStat->mesh: mesh_p
test_problemStat->dim: 1
test_problemStat->components: 1
test_problemStat->polynomial degree[0]: 1
test_problemStat->solver: cg
test_problemStat2->mesh: mesh_p
test_problemStat2->dim: 2
test_problemStat2->components: 1
test_problemStat2->polynomial degree[0]: 1
test_problemStat2->solver: cg
dimension of world: 2
level of information: 0
break on missing tag: 0
mesh_p->macro file name: ./macro/macro.stand.2d
mesh_p->global refinements: 2
test_problemStat->mesh: mesh_p
test_problemStat->dim: 2
test_problemStat->components: 1
test_problemStat->polynomial degree[0]: 1
test_problemStat->solver: cg
test_problemStat2->mesh: mesh_p
test_problemStat2->dim: 2
test_problemStat2->components: 1
test_problemStat2->polynomial degree[0]: 1
test_problemStat2->solver: cg
dimension of world: 3
level of information: 0
break on missing tag: 0
mesh_p->macro file name: ./macro/macro.stand.3d
mesh_p->global refinements: 2
test_problemStat->mesh: mesh_p
test_problemStat->dim: 3
test_problemStat->components: 1
test_problemStat->polynomial degree[0]: 1
test_problemStat->solver: cg
test_problemStat2->mesh: mesh_p
test_problemStat2->dim: 3
test_problemStat2->components: 1
test_problemStat2->polynomial degree[0]: 1
test_problemStat2->solver: cg
dimension of world: 3
level of information: 0
break on missing tag: 0
% ============ VARIABLES ===================
backgroundMesh->enabled: 1
backgroundMesh->N: 32*32*32
backgroundMesh->min_corner: [-1.1,-1.1,-1.1]