From 323771cd23f812b63e5dd4de498d8dadde4a3820 Mon Sep 17 00:00:00 2001 From: Suneth Warnakulasuriya Date: Sun, 28 Jun 2020 00:33:44 +0200 Subject: [PATCH] Update test_variable_utils.py --- kratos/tests/test_variable_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kratos/tests/test_variable_utils.py b/kratos/tests/test_variable_utils.py index 469a3018aced..43ab61bdb0f9 100644 --- a/kratos/tests/test_variable_utils.py +++ b/kratos/tests/test_variable_utils.py @@ -783,8 +783,8 @@ def test_distribute_condition_variable(self): condition.SetValue(KratosMultiphysics.VELOCITY, vector) variable_utils = KratosMultiphysics.VariableUtils() - variable_utils.DistributeConditionVariable(model_part, KratosMultiphysics.DISTANCE, KratosMultiphysics.AUX_MESH_VAR, False) - variable_utils.DistributeConditionVariable(model_part, KratosMultiphysics.VELOCITY, KratosMultiphysics.AUX_MESH_VAR, False) + variable_utils.WeightedAccumulateConditionVariableOnNodes(model_part, KratosMultiphysics.DISTANCE, KratosMultiphysics.AUX_MESH_VAR, False) + variable_utils.WeightedAccumulateConditionVariableOnNodes(model_part, KratosMultiphysics.VELOCITY, KratosMultiphysics.AUX_MESH_VAR, False) distance_vector = [ 1.0, 3602.0, 10803.0, 3643056.0, 3789835.0, 1897352.0 @@ -824,8 +824,8 @@ def test_distribute_condition_variable_inverse(self): condition.SetValue(KratosMultiphysics.VELOCITY, vector) variable_utils = KratosMultiphysics.VariableUtils() - variable_utils.DistributeConditionVariable(model_part, KratosMultiphysics.DISTANCE, KratosMultiphysics.AUX_MESH_VAR, True) - variable_utils.DistributeConditionVariable(model_part, KratosMultiphysics.VELOCITY, KratosMultiphysics.AUX_MESH_VAR, True) + variable_utils.WeightedAccumulateConditionVariableOnNodes(model_part, KratosMultiphysics.DISTANCE, KratosMultiphysics.AUX_MESH_VAR, True) + variable_utils.WeightedAccumulateConditionVariableOnNodes(model_part, KratosMultiphysics.VELOCITY, KratosMultiphysics.AUX_MESH_VAR, True) distance_vector = [ 1.0, 3602.0, 10803.0, 3643056.0, 3789835.0, 1897352.0