> For the complete documentation index, see [llms.txt](https://swatplus.gitbook.io/io-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://swatplus.gitbook.io/io-docs/introduction-1/basin-1/codes.bsn.md).

# codes.bsn

This file contains control codes for the simulation of basin-level processes.

| Field                                                               | Description                                      | Type    |
| ------------------------------------------------------------------- | ------------------------------------------------ | ------- |
| pet\_file                                                           | Currently not used                               | string  |
| wq\_file                                                            | Currently not used                               | string  |
| [pet](/io-docs/introduction-1/basin-1/codes.bsn/pet.md)             | Potential Evapotranspiration (PET) method        | integer |
| event                                                               | Currently not used                               | integer |
| [crack](/io-docs/introduction-1/basin-1/codes.bsn/crack.md)         | Crack flow                                       | integer |
| [swift\_out](/io-docs/introduction-1/basin-1/codes.bsn/rtu_wq.md)   | Writing of input file for SWIFT                  | integer |
| sed\_det                                                            | Currently not used                               | integer |
| [rte\_cha](/io-docs/introduction-1/basin-1/codes.bsn/rte_cha.md)    | Channel routing                                  | integer |
| deg\_cha                                                            | Currently not used                               | integer |
| wq\_cha                                                             | Currently not used                               | integer |
| [nostress](/io-docs/introduction-1/basin-1/codes.bsn/rte_pest.md)   | Turning off of plant stress                      | integer |
| cn                                                                  | Currently not used                               | integer |
| c\_fact                                                             | Currently not used                               | integer |
| [carbon](/io-docs/introduction-1/basin-1/codes.bsn/carbon.md)       | Carbon routine                                   | integer |
| [lapse](/io-docs/introduction-1/basin-1/codes.bsn/baseflo.md)       | Precipitation and temperature lapse rate control | integer |
| [uhyd](/io-docs/introduction-1/basin-1/codes.bsn/uhyd.md)           | Unit Hydrograph method                           | integer |
| sed\_cha                                                            | Currently not used                               | integer |
| [tiledrain](/io-docs/introduction-1/basin-1/codes.bsn/tiledrain.md) | Tile drainage equation code                      | integer |
| [wtable](/io-docs/introduction-1/basin-1/codes.bsn/wtable.md)       | Water table depth algorithms                     | integer |
| [soil\_p](/io-docs/introduction-1/basin-1/codes.bsn/soil_p.md)      | Soil phosphorus model                            | integer |
| [gampt](/io-docs/introduction-1/basin-1/codes.bsn/abstr_init.md)    | Surface runoff method                            | integer |
| atmo\_dep                                                           | Currently not used                               | string  |
| stor\_max                                                           | Currently not used                               | integer |
| qual2e                                                              | Instream nutrient routing method                 | integer |
| [gwflow](/io-docs/introduction-1/basin-1/codes.bsn/headwater.md)    | Flood routing                                    | integer |
