Skip to content

Commit d46fe83

Browse files
committed
Tested binaries
1 parent 2dfb224 commit d46fe83

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

bin/ccx2paraview

22.9 MB
Binary file not shown.

bin/ccx2paraview.exe

5.92 MB
Binary file not shown.

test.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,22 @@ def convert_calculation_results_in(folder):
8686
print('\nTotal {:.1f} seconds'.format(time.perf_counter() - start))
8787

8888

89+
# Convert calculation results with binaries
90+
def test_binary_in(folder):
91+
print('CONVERTER TEST\n\n')
92+
start = time.perf_counter() # start time
93+
for file_name in scan_all_files_in(folder, '.frd'):
94+
if os.name == 'nt':
95+
command = 'bin\\ccx2paraview.exe'
96+
else:
97+
command = './bin/ccx2paraview'
98+
for fmt in ['vtk', 'vtu']:
99+
print('\n' + '='*50)
100+
subprocess.run('{} {} {}'.format(command, file_name, fmt), shell=True)
101+
102+
print('\nTotal {:.1f} seconds'.format(time.perf_counter() - start))
103+
104+
89105
if (__name__ == '__main__'):
90106
clean.screen()
91107

@@ -99,6 +115,7 @@ def convert_calculation_results_in(folder):
99115
folder = os.path.join(os.path.dirname(__file__), 'examples')
100116
# run_all_analyses_in(folder)
101117
# test_frd_parser_on_models_in(folder)
102-
convert_calculation_results_in(folder)
118+
# convert_calculation_results_in(folder)
119+
test_binary_in(folder)
103120

104121
clean.cache()

0 commit comments

Comments
 (0)