@@ -203,11 +203,9 @@ def CollectExtensionModulePaths(self):
203
203
gm_path = os .path .join (_pwd_ ,"VariationalPrinciple" ,"_GeometricStiffness_" )
204
204
cm_path = os .path .join (_pwd_ ,"VariationalPrinciple" ,"_ConstitutiveStiffness_" )
205
205
material_path = os .path .join (_pwd_ ,"MaterialLibrary" ,"LLDispatch" )
206
- occ_path = os .path .join (_pwd_ ,"BoundaryCondition" ,"CurvilinearMeshing" ,"PostMesh" )
207
206
208
- self .extension_paths = [tensor_path ,mesh_path ,jacobi_path ,bp_path ,km_path ,gm_path ,cm_path ,material_path ,occ_path ]
209
-
210
- # self.extension_paths = [jacobi_path]
207
+ self .extension_paths = [tensor_path ,mesh_path ,jacobi_path ,bp_path ,km_path ,gm_path ,cm_path ,material_path ]
208
+ # self.extension_paths = [material_path]
211
209
212
210
def SourceClean (self ):
213
211
@@ -219,9 +217,6 @@ def SourceClean(self):
219
217
execute ('cd ' + _path + ' && ' + source_clean_cmd )
220
218
elif "LLDispatch" in _path :
221
219
execute ('cd ' + _path + ' && echo rm -rf *.cpp CythonSource/*.cpp && rm -rf *.cpp CythonSource/*.cpp' )
222
- elif "PostMesh" in _path :
223
- execute ('cd ' + _path + ' && echo rm -rf PostMeshPy.cpp build/ && rm -rf m PostMeshPy.cpp build' )
224
-
225
220
226
221
def Clean (self ):
227
222
@@ -231,7 +226,7 @@ def Clean(self):
231
226
# You need to run both make clean and rm -rf as some modules relocate the shared libraries
232
227
clean_cmd = 'make clean ' + self .compiler_args
233
228
for _path in self .extension_paths :
234
- if "PostMesh" not in _path and " LLDispatch" not in _path :
229
+ if "LLDispatch" not in _path :
235
230
execute ('cd ' + _path + ' && echo rm -rf *.so && ' + clean_cmd + ' && rm -rf *.so *.' + self .extension_postfix )
236
231
elif "LLDispatch" in _path :
237
232
execute ('cd ' + _path +
@@ -262,7 +257,6 @@ def Build(self):
262
257
"_IsotropicElectroMechanics_108_" ,
263
258
"_Piezoelectric_100_"
264
259
]
265
-
266
260
# low_level_material_list = ["_IsotropicElectroMechanics_101_"]
267
261
268
262
assert self .extension_paths != None
@@ -275,10 +269,8 @@ def Build(self):
275
269
for material in low_level_material_list :
276
270
material = material .lstrip ('_' ).rstrip ('_' )
277
271
execute ('cd ' + _path + ' && make ' + self .compiler_args + " MATERIAL=" + material )
278
- elif "PostMesh" in _path :
279
- execute ('cd ' + _path + ' && python setup.py build_ext -ifq' )
280
272
281
- # Get rid off cython sources
273
+ # Get rid of cython sources
282
274
sys .stdout = open (os .devnull , 'w' )
283
275
self .SourceClean ()
284
276
sys .stdout = sys .__stdout__
0 commit comments