File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ PROGRAM CANTILEVEREXAMPLE
6060 ! CMISS variables
6161 TYPE (cmfe_BasisType) :: DisplacementBasis,PressureBasis
6262 TYPE (cmfe_BoundaryConditionsType) :: BoundaryConditions
63+ TYPE (cmfe_ComputationEnvironmentType) :: computationEnvironment
6364 TYPE (cmfe_CoordinateSystemType) :: CoordinateSystem, WorldCoordinateSystem
6465 TYPE (cmfe_MeshType) :: Mesh
6566 TYPE (cmfe_DecompositionType) :: Decomposition
@@ -163,8 +164,9 @@ PROGRAM CANTILEVEREXAMPLE
163164 WRITE (* ,' ("Scaling type: ", i3)' ) ScalingType
164165
165166 ! Get the number of computational nodes and this computational node number
166- CALL cmfe_ComputationalNumberOfNodesGet(NumberOfComputationalNodes,Err)
167- CALL cmfe_ComputationalNodeNumberGet(ComputationalNodeNumber,Err)
167+ CALL cmfe_ComputationEnvironment_Initialise(computationEnvironment,err)
168+ CALL cmfe_ComputationEnvironment_NumberOfWorldNodesGet(computationEnvironment,numberOfComputationalNodes,err)
169+ CALL cmfe_ComputationEnvironment_WorldNodeNumberGet(computationEnvironment,computationalNodeNumber,err)
168170
169171 NumberOfDomains= NumberOfComputationalNodes
170172
Original file line number Diff line number Diff line change 4545 numberOfXi = 3
4646
4747# Get the number of computational nodes and this computational node number
48- numberOfComputationalNodes = iron .ComputationalNumberOfNodesGet ()
49- computationalNodeNumber = iron .ComputationalNodeNumberGet ()
48+ computationEnvironment = iron .ComputationEnvironment ()
49+ numberOfComputationalNodes = computationEnvironment .NumberOfWorldNodesGet ()
50+ computationalNodeNumber = computationEnvironment .WorldNodeNumberGet ()
5051
5152# Create a 3D rectangular cartesian coordinate system
5253coordinateSystem = iron .CoordinateSystem ()
240241linearSolver = iron .Solver ()
241242problem .SolversCreateStart ()
242243problem .SolverGet ([iron .ControlLoopIdentifiers .NODE ],1 ,nonLinearSolver )
243- nonLinearSolver .outputType = iron .SolverOutputTypes .PROGRESS
244+ nonLinearSolver .outputType = iron .SolverOutputTypes .MONITOR
244245nonLinearSolver .NewtonJacobianCalculationTypeSet (iron .JacobianCalculationTypes .FD )
245246nonLinearSolver .NewtonAbsoluteToleranceSet (1e-14 )
246247nonLinearSolver .NewtonSolutionToleranceSet (1e-14 )
You can’t perform that action at this time.
0 commit comments