-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
41 lines (34 loc) · 774 Bytes
/
main.cpp
File metadata and controls
41 lines (34 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <boost/format.hpp>
#include <boost/tokenizer.hpp>
#include "fem.h"
int main(int argc,char* argv[])
{
Fem fem;
std::string fileMsh;
#if defined __GNUC__
std::cout << "gnuC detected version: " << __GNUC__ << "." << __GNUC_MINOR__ << std::endl;
#if ((__GNUC__ > 9)||((__GNUC__ == 9)&&(__GNUC_MINOR__ >= 3)) )
std::cout << "gnuc version Ok\n";
#else
std::cout << "This gnuc is too old to handle C++17.\n";
#endif
#endif
if (argc == 2)
{
fileMsh = argv[1];
std::cout << "mesh file = " << fileMsh << std::endl;
fem.pbname = fileMsh;
}
else std::cout << "missing argument : meshFile" << std::endl;
lecture(fem);
femutil(fem);
chapeaux(fem);
affichage(fem);
const int MAXITER = 500;
solve(fem,MAXITER);
/*
savesol(fem);
savevtk(fem);
*/
return 0;
}