UW logo

Variable Infiltration Capacity (VIC)
Macroscale Hydrologic Model

Home | Links | Contact
Dept. of Civil and Env. Engineering
University of Washington
Box 352700
Seattle, WA 98195-2700
WARNING: You are viewing an old version of the VIC documentation. Please visit http://vic.readthedocs.org for the most current documentation.

Frequently Asked Questions

Here are some commonly-asked questions and their answers. Another source of information is the VIC Users Listserve. If you join this listserve, you can post questions to the vic user community.

  1. Does VIC and/or the routing model run on Windows or MacOS?

    The VIC model and the routing model have been developed for use on LINUX and UNIX platforms.

    PLEASE NOTE: We do not have the resources to test or support running VIC or routing model on any other platforms. If you attempt to run VIC and/or the routing model on Windows or any other non-LINUX environment, and you encounter problems, WE CANNOT HELP YOU. If you do encounter problems on these other systems and believe you have found a bug in the model, PLEASE RUN THE MODEL ON LINUX AND TRY TO REPRODUCE THE PROBLEM. If you can reproduce the problem on LINUX, we will help you.

    There are some potential alternatives that can allow you to run VIC on a non-LINUX machine: To use VIC and/or the routing model on a Windows platform, we suggest downloading a free UNIX emulator such as Cygwin and compiling/running these models within this emulator. PLEASE DO NOT ASK US FOR HELP WITH INSTALLING OR USING Cygwin. Also note: if you encounter problems with VIC and/or the routing model on an emulator like Cygwin, once again we will not help you until/unless you can reproduce the problem on a LINUX system.

    While it is true that MacOS has a UNIX kernel, we have not yet tested VIC in this environment. We are looking into this. Stay tuned.

    Thank you for understanding.

  2. Is VIC available in Fortran?

    For the most part, no. In the past, there have been attempts to translate the model to Fortran, but these versions are far out of date, and we do not recommend using them.

  3. Is the routing model available in C?

    For the most part, no. We do know of a version of the model written in C that is being tested by a group here at UW, but there are some discrepancies between it and the official Fortran version. When these are resolved, we may post the C version. If you would like to try the C version, with the caveat that it isn't exactly the same as the Fortran version, please send email to the VIC Administrator.

  4. What are the hardware requirements for VIC and the routing model? Do they take advantage of parallel processing / can they run in a multi-threaded environment?

    VIC's code is not explicitly written for parallel processing. Nevertheless, VIC's design will allow you to implement a "poor man's parallelization". Because VIC simulates each grid cell independently of the others, you can break up your study domain into separate sub-domains (these could be sub-basins or simply any arbitrary grouping of grid cells) and simulate each of these sub-domains separately, in parallel (on different nodes of a cluster, for example). Dividing the domain into sub-domains and combining them again later should be fairly easy, since VIC's input forcings and output results are organized into one file per grid cell. All you need to do is create separate soil parameter files, one for each sub-domain (these can even be copies of the original whole-domain soil parameter file, with the appropriate grid cells given a "1" as the first value and all other grid cells given a "0"). You will also need to create separate global parameter files. These would all be identical save for the soil parameter file that they point to. Of course the routing model must access all grid cells in a single run, but it runs very quickly in comparison to the VIC run.

    VIC is very I/O intensive - by default it appends to the grid cell's output file at the end of every time step, although the more recent versions (4.0.6, 4.1.1) allow you to aggregate sub-daily results to a daily time step before writing them, thus cutting down the number of file writes.  Still, if you are running on a cluster that has many nodes but a common disk array with a small number of disk controllers, a performance bottleneck will occur in the writing of output files.  In this case (which we have here in our lab), the best thing to do is write the output locally (assuming the nodes have their own storage) during the simulation, and then at the end of each node's job, have the job copy all the output back to the common array in a single command, which will be much more efficient in terms of block sizes than VIC's single-record writing.

    On the other hand, VIC is not very memory-intensive, since it only stores the state of a single grid cell in memory at a given time. I don't know off hand how much memory is uses, though that would be a good statistic to measure.

  5. Are there any Matlab tools written for analyzing and/or plotting VIC results?

    No, not here in the lab. Check the VIC Users Listserve.

  6. How can I save VIC's screen output in a file?

    If you'd like to capture VIC's screen output in a log file, you can do (in C-shell):

    vicNl -g global_parameter_filename >& log.txt
    global_parameter_filename = name of the global parameter file corresponding to your project.
    log.txt = name of a log file to contain VIC's screen output.

    This strategy also works for the routing model screen output.

  7. VIC runs fine in water-balance mode, but when I set FULL_ENERGY to TRUE, it crashes – why?

    If you are running an older version of VIC (pre-4.1.1), one explanation might be that your soil parameter file has “nodata” values (e.g. -9999) for bubbling pressure, which is not needed for water balance runs. Bubbling pressure is necessary for energy-balance runs, but older versions of VIC did not check whether the values of bubbling pressure in the soil parameter file were valid. 4.1.1 does check and exits with an error message if bubbling pressure is not valid. If you need a quick-and-dirty way to generate values of bubbling pressure so that you can start an energy-balance run, you can use an approximate relationship between bubble and values of expt in your soil parameter file, derived by applying a linear regression to the values from Table 5.3.2 in Handbook of Hydrology and converting lambda to Brooks-Corey's n via Table 5.1.1 in Handbook of Hydrology.

  8. VIC reports that the energy balance failed to converge in snow_intercept, calc_atmos_energy_bal, calc_surf_energy_bal, or solve_T_profile - what can I do?

    Failures to converge can arise for a number of reasons. Causes can include bad input parameters or forcings, poor choice of model timestep length, and instability of the model equations themselves. Here are some steps to take:

    1. Check your input parameters and meteorological forcings - are they reasonable for this grid cell? Are they in the correct format?
    2. Check your model time step or snow step - does the problem disappear if you reduce the time step length? (Note: currently VIC cannot support time step lengths < 1 hour)
    3. If your inputs are reasonable, consider setting TFALLBACK to TRUE in the global parameter file. Now, the simulation will continue using the previous time step's temperature value. The number of instances in which the previous step's T value was used will be reported at the end of each grid cell's simulation. In addition, several output variables are available to monitor when these instances occurred: OUT_TFOL_FBFLAG, OUT_TCAN_FBFLAG, OUT_SURFT_FBFLAG, OUT_SOILT_FBFLAG.
    4. If you use the TFALLBACK option, make sure to output the various temperatures simulated by the model (OUT_TFOLIAGE, OUT_TCANOPY, OUT_SURFT, OUT_SOILT) and check that these values look reasonable. In some cases, convergence failures occur long after the model has ventured into unphysical behavior, and using the previous time step's T value simply preserves these unphysical temperatures.
    5. Check if these behaviors are a known issue under investigation. If you do not see the issue listed, please contact us and tell us about the issue.

  9. Why does actual evapotranspiration (ET) sometimes exceed potential evapotranspiration (PET)?

    VIC's actual evapotranspiration is the sum of canopy evaporation, transpiration, bare soil evaporation, canopy snow sublimation, and ground snow sublimation, averaged over the grid cell. Standard definitions of PET (such as the ones used in VIC) only apply to a specific water source: generally either pan evaporation or transpiration in the absence of moisture limitation. Therefore, in winter, sublimation can drive VIC's ET higher than any of VIC's PET variables. Vegetation-related PET should only be compared to transpiration and/or canopy evaporation.

  10. Relative humidity from VIC 4.0.x sometimes exceeds 1.0 (100%) - what can I do?

    Upgrade to VIC 4.1.1 or later. This problem does not exist in later versions of the model.

  11. VIC 4.0.x sometimes gives large water balance errors when COMPUTE_TREELINE is TRUE - what can I do?

    Please ignore these water balance errors. They are accounting errors only, resulting from a bug in the water balance check, rather than any problems in any water balance terms. These errors only occur in the water balance of the first time step of the simulation. They only occur in grid cells that have elevation bands above the treeline. These errors do not occur if COMPUTE_TREELINE is FALSE. These errors do not occur in VIC 4.1.1 or later.

  12. Why does VIC give different results when compiled with optimization flags or compiled 64-bit instead of 32-bit?

    We have heard various reports of VIC's results changing when users re-compile the code with different optimization flags or move from 32-bit to 64-bit platforms. At present we do not know the reasons for this. What we do know is:

    • These differences in results may result from memory issues. This is especially likely if VIC gives different results from one run to the next using the exact same inputs. But we are not 100% certain that memory issues are the reason.
    • These differences in results may be less pronounced when running VIC 4.1.1 or later. VIC 4.1.1 and later have been subjected to more comprehensive memory testing than earlier versions, and many bugs having to do with uninitialized variables, buffer overruns, incorrect freeing of allocated memory, etc. have been found and fixed. However even VIC 4.1.1 and later yield different results under different compiler options and on different platforms.
    • Some of the differences may result from using inappropriate compiler option combinations, such as "-g" (debugging symbols) and "-O3" simultaneously. You should never combine the "-g" option with any compiler optimization options. Admittedly, this can make it difficult to debug an optimized version of the code.
    • Some of the differences in results may in fact be introduced by the compiler when it attempts to optimize the code.
    • Simply turning off the "-g" option without adding an optimization option will make the code run faster - this may be sufficient for your purposes and may reduce any differences in results.
    • We have not yet performed rigorous testing of any VIC versions on 64-bit platforms. At this point, users must assume some risk when runing VIC in a 64-bit environment. We hope to look into this further in the future.
    • VIC's numerical schemes may be partially responsible for differences. VIC uses simple first-order forward difference schemes for most of its computations, although VIC 4.1.1 and later have the option to use an implicit scheme to model soil temperatures.

    In summary, probably the best thing you can do at this point is to upgrade to the latest version of VIC and see if turning off the "-g" option is sufficient to speed up your code without invoking any compiler optimization options. If running with FROZEN_SOIL or FULL_ENERGY set to TRUE, setting IMPLICIT to TRUE may make VIC's results more stable as well.

    It is worth noting that users have reported similar problems with other hydrologic models. See Martyn Clark's "numerical daemons" paper.

  13. I want to output a variable, but I don't see it listed in the output variable list. What should I do?

    As discussed here, VIC allows users to select which output variables to write to their output files. Variables that can be selected are listed here as well as in the VIC source code file vicNl_def.h (listed as "OUT_*"). However, not all variables that VIC simulates are available for output. And of course if you are changing VIC's physics, any new variables you add are also not available for output (yet). In either of these cases, please see the instructions on how to add a new output variable to VIC.

VIC Administrator
Last modified: Tue Aug 11 14:57:28 PDT 2009