def main(): cellWidth, lon, lat = cellWidthVsLatLon() build_spherical_mesh(cellWidth, lon, lat, out_filename='base_mesh.nc', do_inject_bathymetry=True)
def main(): cellWidth, lon, lat = cellWidthVsLatLon() build_spherical_mesh(cellWidth, lon, lat, out_filename='base_mesh.nc', do_inject_bathymetry=True, preserve_floodplain=True, floodplain_elevation=10.0)
def run(self): """ Run this step of the test case """ logger = self.logger # only use progress bars if we're not writing to a log file use_progress_bar = self.log_filename is None # create the base mesh cellWidth, lon, lat = self.build_cell_width_lat_lon() build_spherical_mesh(cellWidth, lon, lat, out_filename='mesh.nc', logger=logger, use_progress_bar=use_progress_bar) make_graph_file(mesh_filename='mesh.nc', graph_filename='graph.info')
def run(self): """ Run this step of the test case """ with_ice_shelf_cavities = self.with_ice_shelf_cavities logger = self.logger # only use progress bars if we're not writing to a log file use_progress_bar = self.log_filename is None # create the base mesh cellWidth, lon, lat = self.build_cell_width_lat_lon() build_spherical_mesh(cellWidth, lon, lat, out_filename='base_mesh.nc', logger=logger, use_progress_bar=use_progress_bar) cull_mesh(with_critical_passages=True, logger=logger, use_progress_bar=use_progress_bar, with_cavities=with_ice_shelf_cavities)
def main(): cellWidth, lon, lat = cellWidthVsLatLon() build_spherical_mesh(cellWidth, lon, lat, out_filename='base_mesh.nc')