From c3f1ba1e6f5aae2f85f5537cf5204013d1e68d57 Mon Sep 17 00:00:00 2001 From: Paul Dechamps <paul.dechamps@uliege.be> Date: Sun, 10 Nov 2024 17:56:22 +0100 Subject: [PATCH] (docs) Update README and format file --- README.md | 4 ++-- format/format.py | 12 +----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index c63bc30..a9d3b5b 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ ## 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.  -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 diff --git a/format/format.py b/format/format.py index 6696f99..f3568f2 100755 --- a/format/format.py +++ b/format/format.py @@ -5,24 +5,19 @@ # @authors A. Crovato, R. Boman # Modified by P. Dechamps -import sys import os import fnmatch -import re import subprocess - def all_files(root, patterns='*', - skips='*.git*;*build*', + skips='*.git*;*build*;modules*', single_level=False, yield_folders=False): # self.checkPath(root) patterns = patterns.split(';') skips = skips.split(';') for path, subdirs, files in os.walk(root): - if 'modules' in path.split(os.sep): - continue if yield_folders: files.extend(subdirs) files.sort() @@ -40,14 +35,10 @@ def all_files(root, if single_level: break - def main(): - - # loop over all files and format them encs = {} for f in all_files(os.getcwd(), patterns='*.cpp;*.c;*.h;*.hpp'): print('Checking file', 'blaster'+f.split('blaster', 1)[-1], end='...') - # print(f) cmd = ['clang-format-11', "-style=file", "-i", f] retcode = subprocess.call(cmd) if retcode != 0: @@ -57,5 +48,4 @@ def main(): if __name__ == "__main__": - # print('running format_code.py...') main() -- GitLab