-
Notifications
You must be signed in to change notification settings - Fork 0
/
case2.py
52 lines (32 loc) · 1.29 KB
/
case2.py
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
41
42
43
44
45
from dolfin import *
import numpy as np
from oneStep import readRHS, dualError
from tex import makeTex
from resError import compute
directoriesCompute = [ \
'case02_p02_q01_nelem002048_steps00032' \
]
directoriesTex = [ \
'case02_p02_q01_nelem000128_steps00008', \
'case02_p02_q01_nelem000512_steps00016', \
'case02_p02_q01_nelem002048_steps00032' \
]
# P1 Q1
# 'case02_p01_q01_nelem000128_steps00005', \
# 'case02_p01_q01_nelem000512_steps00008', \
# 'case02_p01_q01_nelem002048_steps00010', \
# 'case02_p01_q01_nelem008192_steps00016', \
# 'case02_p02_q01_nelem000128_steps00008', \
# 'case02_p02_q01_nelem000512_steps00016', \
# 'case02_p02_q01_nelem002048_steps00032' \
# 'case02_p03_q02_nelem000128_steps00008', \
# 'case02_p03_q02_nelem000512_steps00016', \
# 'case02_p03_q02_nelem002048_steps00032', \
# Print EOC in the tables?
orders = True
# Compute the dual error OR set the tables with zero value
computeDual = True
#Compute the errors and save them to files
compute(directoriesCompute, computeDual)
# Make tex table from the given files !!!
makeTex(directoriesTex, orders )