Skip to content
Snippets Groups Projects
Commit 76a04671 authored by Daniel Brown's avatar Daniel Brown
Browse files

adding nc arg for maps

parent b1dc5fd4
No related branches found
No related tags found
No related merge requests found
...@@ -206,7 +206,7 @@ class surfacemap(object): ...@@ -206,7 +206,7 @@ class surfacemap(object):
return self.ROMWeights, EI return self.ROMWeights, EI
def generateROMWeightsNew(self, EIxFilename, EIyFilename=None, verbose=False, interpolate=False): def generateROMWeightsNew(self, EIxFilename, EIyFilename=None, verbose=False, interpolate=False, newtonCotesOrder=8):
if interpolate == True: if interpolate == True:
# Use EI nodes to interpolate if we # Use EI nodes to interpolate if we
with open(EIxFilename, 'rb') as f: with open(EIxFilename, 'rb') as f:
...@@ -228,7 +228,7 @@ class surfacemap(object): ...@@ -228,7 +228,7 @@ class surfacemap(object):
self.interpolate(nx, ny) self.interpolate(nx, ny)
self._rom_weights = makeWeightsNew(self, EIxFilename, EIyFilename, verbose=verbose) self._rom_weights = makeWeightsNew(self, EIxFilename, EIyFilename, verbose=verbose, newtonCotesOrder=newtonCotesOrder)
return self.ROMWeights return self.ROMWeights
def interpolate(self, nx, ny, **kwargs): def interpolate(self, nx, ny, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment