Home | Trees | Indices | Help |
---|
|
Creating a vic manager which communicates with the Vic3 supercomputer and updates modeling results on the home disk.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
list[string] |
|
||
|
|||
|
|||
bool |
|
||
list[(int,string)] |
|
|
Initializing a Vic instance.
|
Set the Sphinx db for this Vic instance.
|
Add model to the list of to be processed models. Here, dictionaries are initiated to contain information about the modeling session. Every entry in the dictionaries have an index number associated with them to uniquely identify a modeling session across the vic manager. Dictionaries are kept for model ids, parameter sets, transitions, failed calculations and finished calculations, and vic inputfiles for every transition. The current_model index is the same between a call to the addModel method and the queueModel() OR the reset methods. Anything between uses the same index. queueModel() will move to the next index value, while reset() will reset the current index number.
|
Add a transition to the list of transitions in progress. They will be checked at the end of the VIC run to see if they have been correctly calculated. This concerns transitions that are requested, but are already present in the sphinx database with an "IN_PROGRESS" keyword included in the transition dictionary. These will not be calculated again, instead they are remembered and checked at the end of the full modeling run.
|
Add a transition to the vic transition list. These will be calculated on Vic3 and inputfiles will be prepared for them. The entries in the transitions dictionary are deleted when the entry has been completely finished.
|
Queue the current model on VIC3, which will cp mline and cooling output file to VIC, run the shell script there, and create the necessary input files. Once everything has been started up, the current model index number is increased by one to allow for a new model to be added. You cannot add a model and then add another model unless you reset or queue the previous model. |
If a model has been added, and no transitions were required to be calculated, remove that model entry here. This only removes the self.models and self.transitions entries. The other dictionaries are re-initiated anyway when adding a model. |
Make the job file that will run the loop on VIC3 and copy the cooling and mline output to VIC3.
|
Make the input files with just one line request in each. These inputfiles are then converted to format appropriate for Vic3 and subsequently copied to Vic3. |
Finalize a modeling procedure on VIC: successful and failed results are printed to a file, including the transitions. This log file can be used as input for ComboCode again by putting LINE_LISTS=2. |
Checks progress on all queued model_ids by checking if the output has been copied to the local disk from VIC3. In this method, the self.failed and self.finished keywords are updated, and the self.inputfiles and self.transitions is cleaned up on the go.
|
Get a list of unique queue number + cooling model_id for those models that are still in progress on VIC.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 7 18:01:57 2016 | http://epydoc.sourceforge.net |