Changes between Initial Version and Version 3 of Ticket #319


Ignore:
Timestamp:
06/02/09 20:02:01 (15 years ago)
Author:
arango
Comment:

No this is not a bug. This is completely intended!!! We cannot call any of the biology models from initial because we will introduce a big adjoint bug!!!

The way that I solved this problem is to rewrite the correct value for the attribute bio_file in the header of output NetCDF file, when the file is closed. Check routine netcdf_close in file mod_netcdf.F. The fact that you are having this problem implies that you are either checking the file before it is closed or you are not using the call to:

      CALL netcdf_close (ng, model, ncid, ncname)

everytime that a NetCDF file is closed. This is part of the new ROMS I/O design. This routine is generic and expandable, so in the future we can take care of things like this.

Anyway, I think that I forgot to document this so I don't expect anybody to know about this trick.

I had to do this trick because now we are allowing to have multitple copies of the biological models. For example, you can have a modified copy of any of the biology models in the working (application) directory. John Wilkin asked for this capability since usually the biological models are tuned (changed a little) for a particular application. This will avoid to making changes to the distribuited version of these models.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #319

    • Property ResolutionWorksForMe
    • Property Status newclosed
  • Ticket #319 – Description

    initial v3  
    1 In def_info.F, bio_files gets filled with '-' then written out as is. I suggest adding something like:
     1In '''def_info.F''', the global attribute '''bio_file''' gets filled with '-' then written out as is. I suggest adding something like:
    22          lstr=LEN_TRIM(BIONAME(i))
    33          IF (lstr.gt.0) THEN