Document intended return code for append_well_controls().

This commit is contained in:
Bård Skaflestad 2012-04-22 16:58:37 +02:00
parent e444a3b77e
commit 65a7ec3ad9

View File

@ -168,15 +168,17 @@ add_well(enum WellType type ,
struct Wells *W ); struct Wells *W );
/** Append a control to a well. /**
* If successful, ctrl->num is incremented by 1. * Append operational constraint to an existing well.
* Note that this function does not change ctrl->current. *
* To append a control to a well with index w, pass its * Increments ctrl->num by one if successful. Introducing a new
* controls to this function via wellsptr->ctrls[w]. * operational constraint does not affect the well's notion of the
* \param[in] type Control type. * currently active constraint represented by ctrl->current.
* \param[in] target Target value for the control. *
* \param[inout] ctrl The WellControls object to be modified. * \param[in] type Control type.
* \return 1 if successful, 0 if failed. * \param[in] target Target value for the control.
* \param[inout] ctrl Existing set of well controls.
* \return Non-zero (true) if successful and zero (false) otherwise.
*/ */
int int
append_well_controls(enum WellControlType type , append_well_controls(enum WellControlType type ,