|
59 | 59 | equationsSetUserNumber = 1 |
60 | 60 | problemUserNumber = 1 |
61 | 61 |
|
| 62 | +worldRegion = iron.Region() |
| 63 | +iron.Context.WorldRegionGet(worldRegion) |
| 64 | + |
62 | 65 | # Get the number of computational nodes and this computational node number |
63 | 66 | # for when running in parallel with MPI |
64 | 67 | computationEnvironment = iron.ComputationEnvironment() |
| 68 | +iron.Context.ComputationEnvironmentGet(computationEnvironment) |
65 | 69 | numberOfComputationalNodes = computationEnvironment.NumberOfWorldNodesGet() |
66 | 70 | computationalNodeNumber = computationEnvironment.WorldNodeNumberGet() |
67 | 71 |
|
68 | 72 | # Create a 3D rectangular cartesian coordinate system |
69 | 73 | coordinateSystem = iron.CoordinateSystem() |
70 | | -coordinateSystem.CreateStart(coordinateSystemUserNumber) |
| 74 | +coordinateSystem.CreateStart(coordinateSystemUserNumber,iron.Context) |
71 | 75 | coordinateSystem.DimensionSet(3) |
72 | 76 | coordinateSystem.CreateFinish() |
73 | 77 |
|
74 | 78 | # Create a region within the world region and |
75 | 79 | # assign the coordinate system to the region |
76 | 80 | region = iron.Region() |
77 | | -region.CreateStart(regionUserNumber, iron.WorldRegion) |
| 81 | +region.CreateStart(regionUserNumber, worldRegion) |
78 | 82 | region.LabelSet("ProlateSpheroid") |
79 | 83 | region.CoordinateSystemSet(coordinateSystem) |
80 | 84 | region.CreateFinish() |
|
232 | 236 | problemSpecification = [iron.ProblemClasses.ELASTICITY, |
233 | 237 | iron.ProblemTypes.FINITE_ELASTICITY, |
234 | 238 | iron.ProblemSubtypes.NONE] |
235 | | -problem.CreateStart(problemUserNumber, problemSpecification) |
| 239 | +problem.CreateStart(problemUserNumber,iron.Context,problemSpecification) |
236 | 240 | problem.CreateFinish() |
237 | 241 |
|
238 | 242 | # Create the problem control loops |
|
0 commit comments