Commit 7e8c253a authored by Michel Henry's avatar Michel Henry
Browse files

np.bool deprecated -> bool

parent f1f22f92
......@@ -107,18 +107,18 @@ def _load_msh(mesh_file_name, lib, dim) :
cbname = (c_char_p*len(bname))(*(i.encode() for i in bname))
# remove nodes and boundaries not connected to elements
keepnodes = np.full(x.shape[0], False, np.bool)
keepnodes = np.full(x.shape[0], False, bool)
keepnodes[el] = True
newidx = np.cumsum(keepnodes)-1
el = newidx[el]
x = x[keepnodes,:]
periodic_nodes = newidx[periodic_nodes]
keepbnd = np.full(bnd.shape[0], True, np.bool)
keepbnd = np.full(bnd.shape[0], True, bool)
for i in range(dim) :
keepbnd = np.logical_and(keepbnd, keepnodes[bnd[:,i]])
bnd = newidx[bnd][keepbnd,:]
btag = btag[keepbnd]
is_parent = np.full([x.shape[0]],True,np.bool)
is_parent = np.full([x.shape[0]],True,bool)
is_parent[periodic_nodes[:,0]] = False
periodic_parent = np.cumsum(is_parent)-1
periodic_parent[periodic_nodes[:,0]] = periodic_parent[periodic_nodes[:,1]]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment