sfc_climo_gen  1.10.0
utils Module Reference

Utilities. More...

Functions/Subroutines

subroutine, public error_handler (string, rc)
 Handle errors. More...
 
subroutine, public netcdf_err (err, string)
 Handle netCDF error codes. More...
 

Detailed Description

Utilities.

Author
George Gayno
Date
2018

Function/Subroutine Documentation

◆ error_handler()

subroutine, public utils::error_handler ( character(len=*), intent(in)  string,
integer, intent(in), optional  rc 
)

Handle errors.

Parameters
[in]stringError message.
[in]rcError code.
Author
George Gayno
Date
2018

Definition at line 49 of file utils.f90.

Referenced by model_grid::define_model_grid(), source_grid::define_source_grid(), driver(), model_grid::get_model_info(), interp(), and interp_frac_cats().

◆ netcdf_err()

subroutine, public utils::netcdf_err ( integer, intent(in)  err,
character(len=*), intent(in)  string 
)

Handle netCDF error codes.

Parameters
[in]errNetCDF return code.
[in]stringError message.
Author
George Gayno
Date
2018

Definition at line 23 of file utils.f90.

Referenced by model_grid::define_model_grid(), source_grid::define_source_grid(), model_grid::get_model_info(), interp(), interp_frac_cats(), output(), and output_frac_cats::writeit().