FFEA_return_codes.h
Go to the documentation of this file.
1 //
2 // This file is part of the FFEA simulation package
3 //
4 // Copyright (c) by the Theory and Development FFEA teams,
5 // as they appear in the README.md file.
6 //
7 // FFEA is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // FFEA is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with FFEA. If not, see <http://www.gnu.org/licenses/>.
19 //
20 // To help us fund FFEA development, we humbly ask that you cite
21 // the research papers on the package.
22 //
23 
24 #ifndef FFEA_RETURN_CODES_H_INCLUDED
25 #define FFEA_RETURN_CODES_H_INCLUDED
26 
27 // #define FFEA_VERSION "2.0"
28 // #define FFEA_MASCOT "Mega Walrus"
29 
30 #define FFEA_DIRECT_SOLVER 0
31 #define FFEA_ITERATIVE_SOLVER 1
32 #define FFEA_MASSLUMPED_SOLVER 2
33 #define FFEA_NOMASS_CG_SOLVER 3
34 
35 #define FFEA_OK 0
36 #define FFEA_ERROR -1
37 #define FFEA_CAUTION 1
38 
39 #define FFEA_FILE_ERROR_MESSG(F) {FFEA_error_text(); printf("Error opening file: %s\n", F); perror(NULL); return FFEA_ERROR;}
40 #define FFEA_ERROR_MESSG(...) {FFEA_error_text(); printf(__VA_ARGS__); return FFEA_ERROR;}
41 #define FFEA_CAUTION_MESSG(...) {FFEA_caution_text(); printf(__VA_ARGS__);}
42 
43 #define FFEA_BLOB_IS_STATIC 0
44 #define FFEA_BLOB_IS_DYNAMIC 1
45 #define FFEA_BLOB_IS_FROZEN 2
46 
47 #define FFEA_CONFORMATION_CHANGE 0
48 #define FFEA_BINDING_EVENT 1
49 #define FFEA_UNBINDING_EVENT 2
50 #define FFEA_IDENTITY_EVENT 3
51 
52 #include <stdio.h>
53 
55 void FFEA_error_text();
57 void FFEA_caution_text();
58 #endif
void FFEA_error_text()
Definition: FFEA_return_codes.cpp:26
void FFEA_caution_text()
Definition: FFEA_return_codes.cpp:30