weathertom
New member
When running create_region to make a limited area domain I'm running into an error. It ran fine (with the same points file defining the area) when I used the 15 km or 30 km meshes. But, when I tried the same thing using the 24 km mesh I'm getting the error below.
---------------------------------
Creating a regional mesh of ./x1.1024002.grid.nc
Marking /usr/lib/python3/dist-packages/numpy/core/numeric.py:301: FutureWarning: in the future, full(1024002, 0) will return an array of dtype('int64')
format(shape, fill_value, array(fill_value).dtype), FutureWarning)
boundary 1 ...
Filling region ...
Creating boundary layer: 1 ... 2 ... 3 ... 4 ... 5 ... 6 ... 7 ... 8 ... DONE!
Marking region edges ...
Marking region vertices...
Subsetting mesh fields into the specified region mesh...
Copying variable latCell...
Copying variable lonCell...
Copying variable meshDensity...
Copying variable xCell...
Copying variable yCell...
Copying variable zCell...
Copying variable indexToCellID... reindexing field ... Done!
Copying variable latEdge...
Copying variable lonEdge...
Copying variable xEdge...
Copying variable yEdge...
Copying variable zEdge...
Copying variable indexToEdgeID... reindexing field ... Done!
Copying variable latVertex...
Copying variable lonVertex...
Copying variable xVertex...
Copying variable yVertex...
Copying variable zVertex...
Copying variable indexToVertexID... reindexing field ... Done!
Copying variable cellsOnEdge... reindexing field ... Done!
Copying variable nEdgesOnCell...
Copying variable nEdgesOnEdge...
Copying variable edgesOnCell... reindexing field ... Done!
Copying variable edgesOnEdge... reindexing field ... Done!
Copying variable weightsOnEdge...
Copying variable dvEdge...
Copying variable dv1Edge...
Copying variable dv2Edge...
Copying variable dcEdge...
Copying variable angleEdge...
Copying variable areaCell...
Copying variable areaTriangle...
Copying variable cellsOnCell... reindexing field ... Done!
Copying variable verticesOnCell... reindexing field ... Done!
Copying variable verticesOnEdge... reindexing field ... Done!
Copying variable edgesOnVertex... reindexing field ... Done!
Copying variable cellsOnVertex... reindexing field ... Done!
Copying variable kiteAreasOnVertex...
Copying variable fEdge...
Copying variable fVertex...
Copying variable h_s...
Copying variable u...
Traceback (most recent call last):
File "/home/mdladmin/mpas/MPAS-Limited-Area/create_region", line 59, in <module>
regional_area.gen_region(**kwargs)
File "/home/mdladmin/mpas/MPAS-Limited-Area/limited_area/limited_area.py", line 151, in gen_region
**kwargs)
File "/home/mdladmin/mpas/MPAS-Limited-Area/limited_area/mesh.py", line 333, in subset_fields
region.mesh.variables[var][:] = arrTemp[glbBdyEdgeIDs]
MemoryError
---------------------------------
Creating a regional mesh of ./x1.1024002.grid.nc
Marking /usr/lib/python3/dist-packages/numpy/core/numeric.py:301: FutureWarning: in the future, full(1024002, 0) will return an array of dtype('int64')
format(shape, fill_value, array(fill_value).dtype), FutureWarning)
boundary 1 ...
Filling region ...
Creating boundary layer: 1 ... 2 ... 3 ... 4 ... 5 ... 6 ... 7 ... 8 ... DONE!
Marking region edges ...
Marking region vertices...
Subsetting mesh fields into the specified region mesh...
Copying variable latCell...
Copying variable lonCell...
Copying variable meshDensity...
Copying variable xCell...
Copying variable yCell...
Copying variable zCell...
Copying variable indexToCellID... reindexing field ... Done!
Copying variable latEdge...
Copying variable lonEdge...
Copying variable xEdge...
Copying variable yEdge...
Copying variable zEdge...
Copying variable indexToEdgeID... reindexing field ... Done!
Copying variable latVertex...
Copying variable lonVertex...
Copying variable xVertex...
Copying variable yVertex...
Copying variable zVertex...
Copying variable indexToVertexID... reindexing field ... Done!
Copying variable cellsOnEdge... reindexing field ... Done!
Copying variable nEdgesOnCell...
Copying variable nEdgesOnEdge...
Copying variable edgesOnCell... reindexing field ... Done!
Copying variable edgesOnEdge... reindexing field ... Done!
Copying variable weightsOnEdge...
Copying variable dvEdge...
Copying variable dv1Edge...
Copying variable dv2Edge...
Copying variable dcEdge...
Copying variable angleEdge...
Copying variable areaCell...
Copying variable areaTriangle...
Copying variable cellsOnCell... reindexing field ... Done!
Copying variable verticesOnCell... reindexing field ... Done!
Copying variable verticesOnEdge... reindexing field ... Done!
Copying variable edgesOnVertex... reindexing field ... Done!
Copying variable cellsOnVertex... reindexing field ... Done!
Copying variable kiteAreasOnVertex...
Copying variable fEdge...
Copying variable fVertex...
Copying variable h_s...
Copying variable u...
Traceback (most recent call last):
File "/home/mdladmin/mpas/MPAS-Limited-Area/create_region", line 59, in <module>
regional_area.gen_region(**kwargs)
File "/home/mdladmin/mpas/MPAS-Limited-Area/limited_area/limited_area.py", line 151, in gen_region
**kwargs)
File "/home/mdladmin/mpas/MPAS-Limited-Area/limited_area/mesh.py", line 333, in subset_fields
region.mesh.variables[var][:] = arrTemp[glbBdyEdgeIDs]
MemoryError