Skip to content
Snippets Groups Projects
Commit b9aea6e1 authored by jstark's avatar jstark
Browse files

Added missing save g_temp for case of convergence, where it doesn't run until max_iter.

parent bf28af8f
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,7 @@ find_package(BLAS) ...@@ -54,6 +54,7 @@ find_package(BLAS)
find_package(LAPACK) find_package(LAPACK)
find_package(Eigen3) find_package(Eigen3)
find_package(SuiteSparse OPTIONAL_COMPONENTS UMFPACK) find_package(SuiteSparse OPTIONAL_COMPONENTS UMFPACK)
find_package(Boost REQUIRED COMPONENTS unit_test_framework filesystem system thread)
set(CMAKE_SKIP_BUILD_RPATH TRUE) set(CMAKE_SKIP_BUILD_RPATH TRUE)
......
...@@ -18,30 +18,32 @@ if (CUDA_FOUND) ...@@ -18,30 +18,32 @@ if (CUDA_FOUND)
endif() endif()
add_executable(numerics ${OPENFPM_INIT_FILE} ${CUDA_SOURCES} add_executable(numerics ${OPENFPM_INIT_FILE} ${CUDA_SOURCES}
OdeIntegrators/tests/OdeIntegratores_base_tests.cpp # OdeIntegrators/tests/OdeIntegratores_base_tests.cpp
DCPSE/DCPSE_op/tests/DCPSE_op_subset_test.cpp # DCPSE/DCPSE_op/tests/DCPSE_op_subset_test.cpp
DCPSE/DCPSE_op/tests/DCPSE_op_test_base_tests # DCPSE/DCPSE_op/tests/DCPSE_op_test_base_tests
FiniteDifference/FD_Solver_test.cpp # FiniteDifference/FD_Solver_test.cpp
FiniteDifference/FD_op_Tests.cpp # FiniteDifference/FD_op_Tests.cpp
DCPSE/DCPSE_op/tests/DCPSE_op_test3d.cpp # DCPSE/DCPSE_op/tests/DCPSE_op_test3d.cpp
DCPSE/DCPSE_op/tests/DCPSE_op_Solver_test.cpp # DCPSE/DCPSE_op/tests/DCPSE_op_Solver_test.cpp
DCPSE/DCPSE_op/tests/DCPSE_op_test_temporal.cpp # DCPSE/DCPSE_op/tests/DCPSE_op_test_temporal.cpp
DCPSE/tests/Dcpse_unit_tests.cpp # DCPSE/tests/Dcpse_unit_tests.cpp
DCPSE/tests/DcpseRhs_unit_tests.cpp # DCPSE/tests/DcpseRhs_unit_tests.cpp
DCPSE/tests/MonomialBasis_unit_tests.cpp # DCPSE/tests/MonomialBasis_unit_tests.cpp
DCPSE/tests/Support_unit_tests.cpp # DCPSE/tests/Support_unit_tests.cpp
DCPSE/tests/Vandermonde_unit_tests.cpp # DCPSE/tests/Vandermonde_unit_tests.cpp
main.cpp main.cpp
Matrix/SparseMatrix_unit_tests.cpp # Matrix/SparseMatrix_unit_tests.cpp
interpolation/interpolation_unit_tests.cpp # interpolation/interpolation_unit_tests.cpp
Vector/Vector_unit_tests.cpp # Vector/Vector_unit_tests.cpp
Solvers/petsc_solver_unit_tests.cpp # Solvers/petsc_solver_unit_tests.cpp
FiniteDifference/FDScheme_unit_tests.cpp # FiniteDifference/FDScheme_unit_tests.cpp
FiniteDifference/eq_unit_test_3d.cpp # FiniteDifference/eq_unit_test_3d.cpp
FiniteDifference/eq_unit_test.cpp # FiniteDifference/eq_unit_test.cpp
Operators/Vector/vector_dist_operators_unit_tests.cpp # Operators/Vector/vector_dist_operators_unit_tests.cpp
Operators/Vector/vector_dist_operators_apply_kernel_unit_tests.cpp # Operators/Vector/vector_dist_operators_apply_kernel_unit_tests.cpp
../../src/lib/pdata.cpp) # ../../src/lib/pdata.cpp
# level_set/redistancing_Sussman/tests/redistancingSussman_unit_test.cpp
level_set/redistancing_Sussman/tests/convergence_test.cpp)
add_dependencies(numerics ofpmmemory) add_dependencies(numerics ofpmmemory)
add_dependencies(numerics vcluster) add_dependencies(numerics vcluster)
...@@ -169,9 +171,9 @@ install(FILES FiniteDifference/Average.hpp ...@@ -169,9 +171,9 @@ install(FILES FiniteDifference/Average.hpp
FiniteDifference/FD_expressions.hpp FiniteDifference/FD_expressions.hpp
FiniteDifference/FD_op.hpp FiniteDifference/FD_op.hpp
FiniteDifference/FD_Solver.hpp FiniteDifference/FD_Solver.hpp
FiniteDifference/FD_order1.hpp FiniteDifference/Eno_Weno.hpp
FiniteDifference/Eno_Weno.hpp
FiniteDifference/Upwind_gradient.hpp FiniteDifference/Upwind_gradient.hpp
FiniteDifference/FD_order1.hpp
DESTINATION openfpm_numerics/include/FiniteDifference DESTINATION openfpm_numerics/include/FiniteDifference
COMPONENT OpenFPM) COMPONENT OpenFPM)
......
...@@ -481,6 +481,11 @@ private: ...@@ -481,6 +481,11 @@ private:
print_out_iteration_change_residual(grid, i); print_out_iteration_change_residual(grid, i);
} }
update_grid(grid); // Update Phi update_grid(grid); // Update Phi
if (redistOptions.save_temp_grid)
{
g_temp.setPropNames({"Phi_0", "Phi_nplus1_temp", "Phi_grad_temp", "Phi_magnOfGrad_temp", "Phi_0_sign_temp"});
g_temp.save("g_temp_redistancing.hdf5"); // HDF5 file}
}
break; break;
} }
} }
......
//
// Created by jstark on 28.05.21.
//
#ifndef OPENFPM_PDATA_TESTHELPERS_HPP
#define OPENFPM_PDATA_TESTHELPERS_HPP
#endif //OPENFPM_PDATA_TESTHELPERS_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment