Open sjordan29 opened 2 weeks ago
@sjordan29, I added the warning print statement with this commit: 5c69fa8
@sjordan29, I fixed the bug in the warning print statement when the model is coupled with TSM. I also tested the finalize function and saved output with the zarr format, but the netCFD format is giving an error. I have the 1-second model up and running (will post an update when the model is finished).
Gotcha, looks like for netcdf output, the volume_calculation_required
attribute of the xarray is not allowed (I believe that's a boolean, and it must be invalid datatype for netcdfs but not zarr). There are a few alternative ways we could address this
save_clearwater_xarray
method in the mesh module, I think we'd just need to add that to the list of attributes to delete (or, again, we could do this in the io/output module for netcdf files only). I can implement this next week if you don't get to it.
@jrutyna worked on coupling the new
constituents-dev
branch with clearwater-modules and the impacts of TSM were visible in the reaction_model xarray but not the transport_model xarray.Looking into this, I think the issue is here, particularly the part
and constituent in update_concentration.keys()
. I thinkconstituent
here is an instance of theConstituent
class, which would never been in the list of user-providedupdate_concentrations.keys()
. I think what happened is we never satisfied the second part of this conditional so Riverine just kept chugging away with out any user input. We'll want to do two things here:constituent_name
here in place ofconstituent
the way I'd go about confirming this:
update_concentration
parameter. I'd just fill this with some arbitrary value, something like (haven't tested, so may need to fix some bugs):