Hi all -
Could someone provide a short archtypal template for handling errors
in NCL?
I would like to write some code of this form:
load "/usr/local/include/ncarg/hlu/hlu.h"
do while(true)
try a function
if (Error_at_ErrorCode .eq. NOERROR)
clear error code
execute statement
break
else
execute alternative statement
end if
clear error code
end do
I am not sure how to include the library, initialize the error object,
access the current error code, or clear the error code.
Thanks!
Adam
-----------------------------------------------------------
Adam Wolf
Carnegie Institution
Department of Global Ecology
Stanford University: Biological Sciences
510-207-8303
adamwolf_at_stanford.edu
globalecology.stanford.edu
----------------------------------------------------------
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Aug 07 2006 - 15:56:03 MDT
This archive was generated by hypermail 2.2.0 : Wed Aug 09 2006 - 08:25:35 MDT