Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How to use the mergemodels tool?

  • Download the most recent mergemodels tool here (star) MergeModels Tool(star) and copy all the filesof the zip file to the directory, in which you want to carry out the merge activity (e.g. D:\temp\NGMS)
  • this file is the location of the configuration files of the model you want to add to the first model (referencing the Config folder).Change the input file (mergemodels.inp) to reflect the structure of the two configuration directories of the models to be merged. In this file, the first line must be the location of the configuration files of the first model to merge (referencing the Config folder). The second line in

...

Info

Example of mergemodels.inp:

D:\temp\NGMS\Southern_SA\config

D:\temp\NGMS\Southern_NK\config

  • Run the merge program by double-clicking on the file mergemodels.bat. This batch file starts the fortran program with the input file as an argument

...

  • .

...

  • This tool produces a Config folder with merged configuration files. The first line in the input file refers to the directory where the merged files are produced.
Info

Contents of mergemodels.bat:
rem lf90 mergemodels
mergemodels <mergemodels.inp

Source: Fortran code is available in the Mergemodels.f90 file and is compiled with Lahey.

What is next?

The next step is to check the merged configuration in a Stand Alone system of the region in question. Check if the NGMS Stand Alone application starts without errors and then run through the tests as described in the document 'UK Memo 080919 NGMS test scripts for
testing new model.pdf'.

...