Commit 5475c1c4 authored by wagnandr's avatar wagnandr
Browse files

removes heap-overflow test

parent de0640d0
Pipeline #40564 failed with stages
in 30 minutes and 52 seconds
......@@ -805,9 +805,6 @@ if (HYTEG_BUILD_WITH_PETSC)
waLBerla_compile_test(FILES p1dgefunctionspace/P1DGEFunctionspaceTest.cpp DEPENDS hyteg core)
waLBerla_execute_test(NAME P1DGEFunctionspaceTest)
waLBerla_compile_test(FILES p1dgefunctionspace/P1DGEMinimalExampleHeapBufferOverflow.cpp DEPENDS hyteg core)
waLBerla_execute_test(NAME P1DGEMinimalExampleHeapBufferOverflow)
waLBerla_compile_test(FILES p1dgefunctionspace/P1DGESymmetryTest.cpp DEPENDS hyteg core)
waLBerla_execute_test(NAME P1DGESymmetryTest)
......
/*
* Copyright (c) 2017-2022 Nils Kohl.
*
* This file is part of HyTeG
* (see https://i10git.cs.fau.de/hyteg/hyteg).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "core/DataTypes.h"
#include "core/mpi/MPIManager.h"
#include "hyteg/composites/P1DGEP0StokesFunction.hpp"
#include "hyteg/mesh/MeshInfo.hpp"
#include "hyteg/p1dgefunctionspace/P1DGEOperators.hpp"
#include "hyteg/petsc/PETScManager.hpp"
#include "hyteg/primitivestorage/SetupPrimitiveStorage.hpp"
#include "hyteg/solvers/CGSolver.hpp"
using walberla::real_t;
using walberla::uint_t;
int main( int argc, char* argv[] )
{
using namespace hyteg;
walberla::MPIManager::instance()->initializeMPI( &argc, &argv );
walberla::MPIManager::instance()->useWorldComm();
hyteg::PETScManager petscManager( &argc, &argv );
const auto meshFile = "../../data/meshes/tri_1el.msh";
const auto level = 4;
MeshInfo mesh = MeshInfo::fromGmshFile( meshFile );
SetupPrimitiveStorage setupStorage( mesh, uint_c( walberla::mpi::MPIManager::instance()->numProcesses() ) );
setupStorage.setMeshBoundaryFlagsOnBoundary( 1, 0, true );
auto storage = std::make_shared< PrimitiveStorage >( setupStorage, 1 );
P0Function< real_t > src ( "src", storage, level, level );
P1Function< real_t > dst ( "dst", storage, level, level );
// Hier tritt der fehler NICHT auf:
P0ToP1Operator< dg::p0_to_p1_divt_0_affine_q0 > op1( storage, level, level );
op1.apply( src, dst, level, All, Replace );
// aber HIER:
P0ToP1Operator< dg::DGDivtFormP1P0_0 > op2( storage, level, level );
op2.apply( src, dst, level, All, Replace );
return 0;
}
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