Skip to content
Snippets Groups Projects
Verified Commit c3f1ba1e authored by Paul Dechamps's avatar Paul Dechamps :speech_balloon:
Browse files

(docs) Update README and format file

parent 7c541bf7
No related branches found
No related tags found
1 merge request!1BLASTER v1.0
Pipeline #49339 passed
## BLASTER ## BLASTER
BLASTER (Boundary-Layer Adjoint Solver for Transonic External and high Reynolds number flow) is an open-source boundary layer solver written in C++ and python. BLASTER (Boundary-Layer Adjoint Solver for Transonic External and high Reynolds number flow) is an open-source boundary layer solver and a Viscous-Inviscid Interaction (VII) interface written in C++ and python.
![](/logo/logo.png) ![](/logo/logo.png)
It is designed to work in a viscous-inviscid interaction (VII) scheme. Blaster is developed at the University of Liège by Paul Dechamps with the active collaboration of Adrien Crovato and Amaury Bilocq and the help of Romain Boman, and under the supervision of Vincent E. Terrapon and Grigorios Dimitriadis, since 2022. Blaster is developed at the University of Liège by Paul Dechamps with the active collaboration of Adrien Crovato and Amaury Bilocq and the help of Romain Boman, and under the supervision of Grigorios Dimitriadis and Vincent E. Terrapon, since 2021.
# Working with # Working with
......
...@@ -5,24 +5,19 @@ ...@@ -5,24 +5,19 @@
# @authors A. Crovato, R. Boman # @authors A. Crovato, R. Boman
# Modified by P. Dechamps # Modified by P. Dechamps
import sys
import os import os
import fnmatch import fnmatch
import re
import subprocess import subprocess
def all_files(root, def all_files(root,
patterns='*', patterns='*',
skips='*.git*;*build*', skips='*.git*;*build*;modules*',
single_level=False, single_level=False,
yield_folders=False): yield_folders=False):
# self.checkPath(root) # self.checkPath(root)
patterns = patterns.split(';') patterns = patterns.split(';')
skips = skips.split(';') skips = skips.split(';')
for path, subdirs, files in os.walk(root): for path, subdirs, files in os.walk(root):
if 'modules' in path.split(os.sep):
continue
if yield_folders: if yield_folders:
files.extend(subdirs) files.extend(subdirs)
files.sort() files.sort()
...@@ -40,14 +35,10 @@ def all_files(root, ...@@ -40,14 +35,10 @@ def all_files(root,
if single_level: if single_level:
break break
def main(): def main():
# loop over all files and format them
encs = {} encs = {}
for f in all_files(os.getcwd(), patterns='*.cpp;*.c;*.h;*.hpp'): for f in all_files(os.getcwd(), patterns='*.cpp;*.c;*.h;*.hpp'):
print('Checking file', 'blaster'+f.split('blaster', 1)[-1], end='...') print('Checking file', 'blaster'+f.split('blaster', 1)[-1], end='...')
# print(f)
cmd = ['clang-format-11', "-style=file", "-i", f] cmd = ['clang-format-11', "-style=file", "-i", f]
retcode = subprocess.call(cmd) retcode = subprocess.call(cmd)
if retcode != 0: if retcode != 0:
...@@ -57,5 +48,4 @@ def main(): ...@@ -57,5 +48,4 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
# print('running format_code.py...')
main() main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment