Skip to content

Commit

Permalink
Merge pull request #134 from rjleveque/adjoint_geoclaw
Browse files Browse the repository at this point in the history
need ClawRunData adjointdata attribute for geoclaw
  • Loading branch information
rjleveque authored Apr 18, 2019
2 parents dcccd44 + 2a12bd6 commit 631c8b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/python/clawutil/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,7 @@ def __init__(self, pkg, num_dim):
self.add_data(amrclaw.AmrclawInputData(self.clawdata),'amrdata')
self.add_data(amrclaw.RegionData(num_dim=num_dim),'regiondata')
self.add_data(amrclaw.GaugeData(num_dim=num_dim),'gaugedata')
try:
self.add_data(amrclaw.AdjointData(num_dim=num_dim),'adjointdata')
except:
pass # for backward compatibility
self.add_data(amrclaw.AdjointData(num_dim=num_dim),'adjointdata')

elif pkg.lower() in ['geoclaw']:

Expand All @@ -478,6 +475,7 @@ def __init__(self, pkg, num_dim):
self.add_data(amrclaw.AmrclawInputData(self.clawdata),'amrdata')
self.add_data(amrclaw.RegionData(num_dim=num_dim),'regiondata')
self.add_data(amrclaw.GaugeData(num_dim=num_dim),'gaugedata')
self.add_data(amrclaw.AdjointData(num_dim=num_dim),'adjointdata')
self.add_data(geoclaw.GeoClawData(),('geo_data'))
self.add_data(geoclaw.TopographyData(),'topo_data')
self.add_data(geoclaw.DTopoData(),'dtopo_data')
Expand Down

0 comments on commit 631c8b2

Please sign in to comment.