UPP  11.0.0
 All Data Structures Files Functions Variables Pages
retrieve_index.f File Reference

retrieve_index() gets record number of desired variable. More...

Go to the source code of this file.

Functions/Subroutines

subroutine retrieve_index (index, string, varname_all, nrecs, iret)
 retrieve_index() gets record number of desired variable. More...
 

Detailed Description

retrieve_index() gets record number of desired variable.

By examining previously generated inventory of wrf binary restart file, find record number that contains the header record for variable identified by input character variable "string".

Parameters
[in]stringMnemonic for variable desired.
[in]varname_allList of all mnemonics obtained from inventory of file.
[in]nrecsinteger Total number of sequential records counted in wrf binary restart file.
[out]indexinteger Desired record number.
[out]iretinteger Return status, set to 0 if variable was found, non-zero if not.

Program History Log

Date Programmer Comments
2004-11-29 Parrish Initial
Author
Parrish np22
Date
2004-11-29

Definition in file retrieve_index.f.

Function/Subroutine Documentation

subroutine retrieve_index ( integer, intent(out)  index,
character(*), intent(in)  string,
character(132), dimension(nrecs), intent(in)  varname_all,
integer, intent(in)  nrecs,
integer, intent(out)  iret 
)

retrieve_index() gets record number of desired variable.

Parameters
[in]stringMnemonic for variable desired.
[in]varname_allList of all mnemonics obtained from inventory of file.
[in]nrecsinteger Total number of sequential records counted in wrf binary restart file.
[out]indexinteger Desired record number.
[out]iretinteger Return status, set to 0 if variable was found, non-zero if not.

Definition at line 29 of file retrieve_index.f.