Skip to content

Commit 326e2af

Browse files
committed
Update for new computation environment routines.
1 parent c7d2f82 commit 326e2af

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/fortran/uniaxial_extension.F90

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ SUBROUTINE SOLVE_MODEL(compressible, useGeneratedMesh, zeroLoad, useSimplex, use
9393

9494
TYPE(cmfe_BasisType) :: basis,pressureBasis
9595
TYPE(cmfe_BoundaryConditionsType) :: boundaryConditions
96+
TYPE(cmfe_ComputationEnvironmentType) :: computationEnvironment
9697
TYPE(cmfe_CoordinateSystemType) :: coordinateSystem
9798
TYPE(cmfe_DecompositionType) :: decomposition
9899
TYPE(cmfe_EquationsType) :: equations
@@ -136,8 +137,9 @@ SUBROUTINE SOLVE_MODEL(compressible, useGeneratedMesh, zeroLoad, useSimplex, use
136137
END IF
137138

138139
! Get the number of computational nodes and this computational node number
139-
CALL cmfe_ComputationalNumberOfNodesGet(numberOfComputationalNodes,Err)
140-
CALL cmfe_ComputationalNodeNumberGet(computationalNodeNumber,Err)
140+
CALL cmfe_ComputationEnvironment_Initialise(computationEnvironment,err)
141+
CALL cmfe_ComputationEnvironment_NumberOfWorldNodesGet(computationEnvironment,numberOfComputationalNodes,err)
142+
CALL cmfe_ComputationEnvironment_WorldNodeNumberGet(computationEnvironment,computationalNodeNumber,err)
141143

142144
CALL cmfe_CoordinateSystem_Initialise(coordinateSystem,Err)
143145
CALL cmfe_CoordinateSystem_CreateStart(coordinateSystemUserNumber,coordinateSystem,Err)

src/python/uniaxial_extension.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ def solveModel(compressible, useGeneratedMesh, zeroLoad, usePressureBasis):
5353
numberOfXi = 3
5454

5555
# Get the number of computational nodes and this computational node number
56-
numberOfComputationalNodes = iron.ComputationalNumberOfNodesGet()
57-
computationalNodeNumber = iron.ComputationalNodeNumberGet()
56+
computationEnvironment = iron.ComputationEnvironment()
57+
numberOfComputationalNodes = computationEnvironment.NumberOfWorldNodesGet()
58+
computationalNodeNumber = computationEnvironment.WorldNodeNumberGet()
5859

5960
# Create a 3D rectangular cartesian coordinate system
6061
coordinateSystem = iron.CoordinateSystem()

0 commit comments

Comments
 (0)