From b86b65916fc03fc83bae2919810f039f67ffe031 Mon Sep 17 00:00:00 2001 From: umairhussaincmm Date: Wed, 3 Jul 2024 13:21:04 +0530 Subject: [PATCH] Modified and Checked the code with v 9.5.1. --- Crystal_Growth_Phase_Field_Model/CMakeLists.txt | 2 +- Crystal_Growth_Phase_Field_Model/applying_bc.cpp | 2 +- Crystal_Growth_Phase_Field_Model/run.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Crystal_Growth_Phase_Field_Model/CMakeLists.txt b/Crystal_Growth_Phase_Field_Model/CMakeLists.txt index 5bef9c9..f54ca87 100644 --- a/Crystal_Growth_Phase_Field_Model/CMakeLists.txt +++ b/Crystal_Growth_Phase_Field_Model/CMakeLists.txt @@ -17,7 +17,7 @@ SET(TARGET_SRC get_random_number.cpp ) -FIND_PACKAGE(deal.II 9.2.0 QUIET +FIND_PACKAGE(deal.II 9.5.0 QUIET HINTS ${deal.II_DIR} ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) IF(NOT ${deal.II_FOUND}) diff --git a/Crystal_Growth_Phase_Field_Model/applying_bc.cpp b/Crystal_Growth_Phase_Field_Model/applying_bc.cpp index b111f3d..44b8051 100644 --- a/Crystal_Growth_Phase_Field_Model/applying_bc.cpp +++ b/Crystal_Growth_Phase_Field_Model/applying_bc.cpp @@ -17,7 +17,7 @@ void PhaseFieldSolver::applying_bc(){ // Prescribing p=1 at the left face (this will be maintained in the subsequent iterations when zero BC is applied in the Newton-Raphson iterations) VectorTools::interpolate_boundary_values (dof_handler, 1, - ConstantFunction<2>(1., 2), + Functions::ConstantFunction<2>(1., 2), boundary_values,p_mask); // To apply the boundary values only to the solution vector without the Jacobian Matrix and RHS Vector diff --git a/Crystal_Growth_Phase_Field_Model/run.cpp b/Crystal_Growth_Phase_Field_Model/run.cpp index c775ec0..d942a98 100644 --- a/Crystal_Growth_Phase_Field_Model/run.cpp +++ b/Crystal_Growth_Phase_Field_Model/run.cpp @@ -46,7 +46,7 @@ void PhaseFieldSolver::run() { old_solution_np = old_solution; //Initialise the delta solution as zero VectorTools::interpolate(dof_handler, - ZeroFunction<2>(2), + Functions::ZeroFunction<2>(2), solution_update); solution_update.compress(VectorOperation::insert); //Assemble Jacobian and Residual -- 2.39.5