00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef __SAVE_MESH_H
00035 #define __SAVE_MESH_H
00036
00037 #include <stdlib.h>
00038 #include <iostream>
00039 #include <fstream>
00040 #include <sstream>
00041 using std::ostream;
00042 using std::ifstream;
00043 using std::ofstream;
00044 using std::istringstream;
00045 using std::endl;
00046
00047 #include <iomanip>
00048 using std::setw;
00049 using std::ios;
00050 using std::setprecision;
00051
00052
00053 #include "OFELI_Config.h"
00054 #include "FFI.h"
00055 #include "Mesh.h"
00056 #include "MeshUtil.h"
00057 #include "Point.h"
00058 #include "util.h"
00059 #include "DMatrix.h"
00060
00061
00062 namespace OFELI {
00063
00070 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083 #endif
00084
00085 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00086 void saveAMD(const string &gp_file, const Mesh &mesh);
00087 #endif
00088
00098 void saveGmsh(const string &gp_file, const Mesh &mesh);
00099
00110 void saveGnuplot(const string &file, const Mesh &mesh);
00111
00122 void MDF2Matlab(const string &file, const Mesh &mesh);
00123
00134 void saveTecplot(const string &file, const Mesh &mesh);
00135
00148 void saveVTK(const string &file, const Mesh &mesh, int format=0);
00149
00150 void saveMatlab(const string &file, const Mesh &mesh);
00151
00152 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00153 struct ErrorInsaveMesh {
00154 void Message(const char *file, size_t line, int code, const char *p1=NULL, const char *p2=NULL);
00155 };
00156
00157
00158 #endif
00159
00160 }
00161
00162 #endif