error handling template

From: Adam Wolf <adamwolf_at_nyahnyahspammersnyahnyah>
Date: Mon, 7 Aug 2006 14:56:03 -0700

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
                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.



Adam Wolf
Carnegie Institution
Department of Global Ecology
Stanford University: Biological Sciences

ncl-talk mailing list
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