Skip to content

Commit

Permalink
Update test_variable_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sunethwarna authored Jun 27, 2020
1 parent 02bb746 commit 323771c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kratos/tests/test_variable_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 323771c

Please sign in to comment.