Skip to content

CE-QUAL-W2 Known Code Limitations

This section documents known bugs and limitations in the current release of the CE-QUAL-W2 code. Users should review these items when setting up and troubleshooting model applications.

Known Bugs and Limitations

Table 1 lists the known issues in the code along with descriptions and, where applicable, suggested workarounds.

Table 1. Known bugs in the CE-QUAL-W2 code.

# Item Description
1 Water levels in a "bowl" If water levels decrease in a waterbody shaped like a "bowl," the removal of model layers as the water level decreases will cause the model to crash if an upstream segment dries up.
2 Pipes under high head The pipes algorithm does not handle well high-head, high-speed, dynamic flow conditions in a pipe as a result of numerical stability.
3 Time step limitation in a complex system model The time step for stability in a system model is governed by the lowest time step for numerical stability. In a system with a very dynamic river and several reservoirs, the time step for the river will control. This can result in very long run times. One workaround is to break apart the model and run the pieces separately using the WDOUT files to provide boundary conditions for downstream waterbodies.
4 Partitioning The partitioning coefficient for sorption is currently constant for all organic and inorganic compartments.
5 Internal weir at a dam segment Placing an internal weir at a dam segment does not affect the outflow from the selective withdrawal structure. Use selective withdrawal to limit outflow rather than an internal weir at the dam segment. The internal weir works for the right-hand face of a model layer.
6 Multiple file error check If duplicate file names are accidentally entered for an input file, the CE-QUAL-W2 executable will crash because it will try to read the file more than once. The first use of the file will lock its availability for the second instance. The error message (traceback error) displayed on screen should identify the file that has problems. The preprocessor should catch this potential error.
7 Raising level of spillway/weir above grid The preprocessor will report an error if the user raises the weir, spillway, gate, water level control, or any other hydraulic element above the current top of the grid. The CE-QUAL-W2 code will still run properly. To eliminate this issue, increase DZ for the uppermost layer to a value that places the grid top above the hydraulic element. Keep in mind that the segment widths from the top layer then extend upward at that same width.
8 Internal weirs The internal weir algorithm does not work when all vertical layers of a segment are blocked by the weir.
9 Multiple dams into one downstream reach Currently, the code will allow one dam inflow to a downstream branch by a user-specified outflow file. The code does allow multiple dams inflowing to a common downstream branch if the outflow is specified as a hydraulic structure.
10 Problems reading file in graphical user interface (GUI), preprocessor, or model The control file, bathymetry file, or an input file sometimes cannot be read properly. This can be a result of the text editor used to produce the file, or file conversions that occur when transferring files from workstations running Linux or from email. There may be a problem with the end-of-line character in the file. For Windows files, the standard end of line is a carriage return followed by a line feed (<CR><LF>). For UNIX systems it is usually only a line feed (<LF>). To convert from a UNIX file to a Windows text file, use Notepad++ (a free Windows text editor), go to EDIT/EOL Conversion, and select Windows. Another common issue is that the editor inserts tab characters. All tabs must be converted to spaces for the file to be read properly.

Review before troubleshooting

Many model crashes and unexpected behaviors can be traced to the issues listed above. Before submitting a bug report, verify that your model setup does not trigger one of these known limitations.