source: XIOS/dev/branch_openmp/extern/remap/src/errhandle.hpp @ 1289

Last change on this file since 1289 was 688, checked in by mhnguyen, 9 years ago

Integrating remap library into XIOS

+) Change name of some files of remap library to be compatible with XIOS
+) Implement function to fill in automatically boundary longitude and latitude

Test
+) On Curie
+) test_remap correct

File size: 363 bytes
Line 
1#ifndef  __ERRHANDLE_H__
2#define __ERRHANDLE_H__
3
4#include <stdlib.h>
5#include <iostream>
6#include <string>
7
8namespace sphereRemap {
9
10static inline void error_exit(const std::string& msg)
11{
12        std::cerr << "Error: " << msg << std::endl;
13        exit(0);
14}
15
16static inline void exit_on_failure(int status, const std::string& msg)
17{
18        if (status) error_exit(msg);
19}
20
21}
22#endif
Note: See TracBrowser for help on using the repository browser.