Skip to content

Commit e794af4

Browse files
committed
fix issue with IBM
1 parent 76e022e commit e794af4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/common/m_constants.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ module m_constants
3939
real(wp), parameter :: threshold_vector_zero = 1e-10 !< Threshold to treat the component of a vector to be zero
4040
real(wp), parameter :: threshold_edge_zero = 1e-10 !< Threshold to treat two edges to be overlapped
4141
real(wp), parameter :: threshold_bary = 1e-1 !< Threshold to interpolate a barycentric facet
42-
real(wp), parameter :: initial_distance_buffer = 1e-12 !< Initialized levelset distance for the shortest path pair algorithm
42+
real(wp), parameter :: initial_distance_buffer = 1e12 !< Initialized levelset distance for the shortest path pair algorithm
4343

44-
end module m_constants
44+
end module m_constants

src/pre_process/m_model.fpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,8 +1055,8 @@ contains
10551055
t_vec3 :: dist_buffer !< Distance between the cell center and the vertices
10561056
integer :: i, j, tri_idx !< Iterator
10571057

1058-
dist_min = 1e-12
1059-
dist_min_normal = 1e-12
1058+
dist_min = 1e12
1059+
dist_min_normal = 1e12
10601060
distance = 0._wp
10611061

10621062
tri_idx = 0
@@ -1221,8 +1221,8 @@ contains
12211221
cross(1) = AB(2)*AC(3) - AB(3)*AC(2)
12221222
cross(2) = AB(3)*AC(1) - AB(1)*AC(3)
12231223
cross(3) = AB(1)*AC(2) - AB(2)*AC(1)
1224-
tri_area = 0.5d0*sqrt(cross(1)**2 + cross(2)**2 + cross(3)**2)
1224+
tri_area = 0.5_wp*sqrt(cross(1)**2 + cross(2)**2 + cross(3)**2)
12251225

12261226
end function f_tri_area
12271227

1228-
end module m_model
1228+
end module m_model

toolchain/mfc/test/test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ def __filter(cases_) -> typing.List[TestCase]:
5353
cases.remove(case)
5454

5555
for case in cases[:]:
56-
if case.ppn > 1 and not ARG("mpi") or 'IBM' in case.trace:
56+
if case.ppn > 1 and not ARG("mpi"):
5757
cases.remove(case)
5858
skipped_cases.append(case)
5959

6060
for case in cases[:]:
6161
if ARG("single"):
6262
skip = ['low_Mach', 'Hypoelasticity', 'teno', 'Chemistry', 'Phase Change model 6'
63-
,'Axisymmetric', 'Transducer', 'Transducer Array', 'Cylindrical']
63+
,'Axisymmetric', 'Transducer', 'Transducer Array', 'Cylindrical', 'Example']
6464
if any(label in case.trace for label in skip):
6565
cases.remove(case)
6666

@@ -248,8 +248,8 @@ def handle_case(case: TestCase, devices: typing.Set[int]):
248248
global errors
249249

250250
nAttempts = 0
251-
if ARG('single') and ARG('test_all'):
252-
max_attempts = max(ARG('max_attempts'), 20)
251+
if ARG('single'):
252+
max_attempts = max(ARG('max_attempts'), 3)
253253
else:
254254
max_attempts = ARG('max_attempts')
255255

0 commit comments

Comments
 (0)