NLAYER is the number of soil moisture layers to be used by the model. Typically the number of layers is 2 or 3. The model cannot be run in energy balance mode with fewer than 3 layers (the top layer is thin 5-15cm), but the water balance model used to have only 2 layers. The model has not been tested with more than 3 layers, so problems may develop.