-
Notifications
You must be signed in to change notification settings - Fork 23
/
main.c
41 lines (40 loc) · 1.82 KB
/
main.c
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
40
/****************************************************************************
* ArtraCFD *
* <By Huangrui Mo> *
* Copyright (C) Huangrui Mo <[email protected]> *
* This file is part of ArtraCFD. *
* ArtraCFD is free software: you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
****************************************************************************/
/****************************************************************************
* Required Header Files
****************************************************************************/
#include <stdio.h> /* standard library for input and output */
#include <stdlib.h> /* dynamic memory allocation and exit */
#include "commons.h"
#include "program_entrance.h"
#include "preprocess.h"
#include "solve.h"
#include "postprocess.h"
/****************************************************************************
* The Main Function
****************************************************************************/
int main(int argc, char *argv[])
{
/* declare and initialize variables */
Control control = {
.runMode = 'i',
.proc = {0}};
Time time = {0};
Space space = {0};
Model model = {0};
/* perform computation */
EnterProgram(argc, argv, &control, &space);
Preprocess(&time, &space, &model);
Solve(&time, &space, &model);
Postprocess(&time, &space, &model);
exit(EXIT_SUCCESS);
}
/* a good practice: end file with a newline */