00001
00015
00016 #include <stdlib.h>
00017 #include <iostream>
00018 #include <ostream>
00019 #include <vector>
00020 #include <string>
00021 #include <Epetra_Comm.h>
00022 #include <Epetra_MpiComm.h>
00023 #include <Epetra_Map.h>
00024 #include <Epetra_Vector.h>
00025 #include <Epetra_MultiVector.h>
00026 #include <Epetra_SerialDenseVector.h>
00027 #include <Epetra_Export.h>
00028 #include <Teuchos_ParameterList.hpp>
00029
00030
00031
00032
00033 #include <boost/program_options.hpp>
00034
00035
00036
00037
00038 #ifdef HAVE_RLOG
00039
00040 #include <rlog/rlog.h>
00041 #include <rlog/rloglocation.h>
00042 #include <rlog/Error.h>
00043 #include <rlog/RLogChannel.h>
00044 #include <rlog/StdioNode.h>
00045
00046 #include <rlog/RLogTime.h>
00047 #endif // HAVE_RLOG
00048
00049
00050
00051 #include "mpi.h"
00052 #include "hdf5.h"
00053
00054
00055 #include "pbe.h"
00056 #include "fmxxtopology.h"
00057 #include "nonsciconst.h"
00058
00059 #ifndef FEMAX_VISUALS_H_
00060 #define FEMAX_VISUALS_H_
00061
00063 int h5_read_point(std::string filename, std::string groupname, int &npoint, double** &coord3d);
00064
00066 int h5_read_tetvertid(std::string filename, std::string groupname, int &ntet, id_t** &tetvertid);
00067
00069 int h5_read_sloc(std::string filename, std::string groupname, int &npoint, double** &coord3d);
00070
00072 int h5_read_sampledefield(std::string filename, std::string groupname, int &nsample, double** &efield, int mthmode);
00073
00075 int h5_read_sampledhfield(std::string filename, std::string groupname, int &nsample, double** &hfield, int mthmode);
00076
00078 int h5_read_eigenvalues(std::string filename, std::string groupname,double* &lambda);
00079
00081 int vtk_write_mesh(std::string vtklffname, int npoint, double** coord3d, int ntet, id_t** tetvertid);
00082
00084
00085
00086 int vtk_write_field(std::string vtklffname,
00087 int npoint,
00088 double** coord3d,
00089 int ntet,
00090 id_t** tetvertid,
00091 double*** efield,
00092 double*** hfield,
00093 int nmode);
00094
00096 int scf_write_efield(std::string scfname, int npoint, double** sloc, double*** efield, int nmode);
00097
00099 int scf_write_hfield(std::string scfname, int npoint, double** sloc, double*** hfield, int nmode);
00100
00101 #endif