Skip to content

Commit

Permalink
Closes #107 (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbsu authored Apr 22, 2024
1 parent 7fb269b commit 7e193d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pymgm_test/mgm2d/mgm2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def constructor(self, Lh, x, domArea=None, hasConstNullspace=False, verbose=True
p = int(np.floor(np.log(N / Nmin) / np.log(coarseningFactor)))

if verbose:
print('Building coarse node sets, N=%d, levels=%d...\n', N, p + 1)
print('Building coarse node sets, N=%d, levels=%d...\n' %(N, p + 1))

if computeDomArea:
tree = cKDTree(x)
Expand Down Expand Up @@ -198,7 +198,7 @@ def constructor(self, Lh, x, domArea=None, hasConstNullspace=False, verbose=True
levelsData[j]['nodes'] = xc[j]

# Build interpolation operator
levelsData[j - 1] = mgm.buildInterpOp(levelsData[j - 1], levelsData[j], interpMethod)
levelsData[j - 1] = self.buildInterpOp(levelsData[j - 1], levelsData[j], interpMethod)

# Restriction is transpose of interpolation
levelsData[j]['R'] = levelsData[j - 1]['I'].T
Expand Down

0 comments on commit 7e193d8

Please sign in to comment.