MODFLOW 6  version 6.5.0.dev2
MODFLOW 6 Code Documentation
devfeaturemodule Module Reference

Disable development features in release mode.

Functions/Subroutines

subroutine, public dev_feature (errmsg, iunit)
 Terminate if in release mode (guard development features) More...
 

Function/Subroutine Documentation

◆ dev_feature()

subroutine, public devfeaturemodule::dev_feature ( character(len=*), intent(in)  errmsg,
integer(i4b), intent(in), optional  iunit 
)

Terminate the program with an error if the IDEVELOPMODE flag is set to 0. This allows developing features on the mainline while disabling them in release builds. An optional file unit may be specified to associate the feature with an input file.

Definition at line 20 of file DevFeature.f90.

21  ! -- dummy
22  character(len=*), intent(in) :: errmsg
23  integer(I4B), intent(in), optional :: iunit
24 
25  ! -- store error and terminate if in release mode
26  if (idevelopmode == 0) then
27  if (present(iunit)) then
28  call store_error(errmsg, terminate=.false.)
29  call store_error_unit(iunit, terminate=.true.)
30  else
31  call store_error(errmsg, terminate=.true.)
32  end if
33  end if
34 
Here is the call graph for this function:
Here is the caller graph for this function: