|
31 | 31 | sourceFieldUserNumber) = range(1, 6) |
32 | 32 | problemUserNumber = 1 |
33 | 33 |
|
| 34 | + |
| 35 | +worldRegion = iron.Region() |
| 36 | +iron.Context.WorldRegionGet(worldRegion) |
| 37 | + |
34 | 38 | # Get the number of computational nodes and this computational node number |
35 | 39 | computationEnvironment = iron.ComputationEnvironment() |
| 40 | +iron.Context.ComputationEnvironmentGet(computationEnvironment) |
36 | 41 | numberOfComputationalNodes = computationEnvironment.NumberOfWorldNodesGet() |
37 | 42 | computationalNodeNumber = computationEnvironment.WorldNodeNumberGet() |
38 | 43 |
|
39 | 44 | # Create a 3D rectangular cartesian coordinate system |
40 | 45 | coordinateSystem = iron.CoordinateSystem() |
41 | | -coordinateSystem.CreateStart(coordinateSystemUserNumber) |
| 46 | +coordinateSystem.CreateStart(coordinateSystemUserNumber,iron.Context) |
42 | 47 | coordinateSystem.CreateFinish() |
43 | 48 |
|
44 | 49 | # Create a region and assign the coordinate system to the region |
45 | 50 | region = iron.Region() |
46 | | -region.CreateStart(regionUserNumber, iron.WorldRegion) |
| 51 | +region.CreateStart(regionUserNumber, worldRegion) |
47 | 52 | region.LabelSet("Region") |
48 | 53 | region.CoordinateSystemSet(coordinateSystem) |
49 | 54 | region.CreateFinish() |
50 | 55 |
|
51 | 56 | # Define basis |
52 | 57 | basis = iron.Basis() |
53 | | -basis.CreateStart(basisUserNumber) |
| 58 | +basis.CreateStart(basisUserNumber,iron.Context) |
54 | 59 | basis.NumberOfXiSet(numberOfXi) |
55 | 60 | basis.InterpolationXiSet([ |
56 | 61 | iron.BasisInterpolationSpecifications.LINEAR_LAGRANGE] * numberOfXi) |
|
146 | 151 | problemSpecification = [iron.ProblemClasses.ELASTICITY, |
147 | 152 | iron.ProblemTypes.FINITE_ELASTICITY, |
148 | 153 | iron.ProblemSubtypes.NONE] |
149 | | -problem.CreateStart(problemUserNumber, problemSpecification) |
| 154 | +problem.CreateStart(problemUserNumber,iron.Context,problemSpecification) |
150 | 155 | problem.CreateFinish() |
151 | 156 |
|
152 | 157 | # Create the problem control loop |
|
0 commit comments