mdolab / idwarp

IDWarp is a mesh warping package for the MACH framework.
Other
17 stars 29 forks source link

Bugfix in multi us mesh initialization #81

Closed anilyil closed 11 months ago

anilyil commented 1 year ago

Purpose

The initialization of MultiUSMesh makes a few os.system calls to overwrite BCs. In my working docker container, this caused MPI problems where somehow the code was calling MPI init again from the os.system call. To avoid this, I changed the initialization to just load the cgns grid, overwrite BCs, and write the grid back out, which is what cgns_utils does anyways so this is more efficient too.

Expected time until merged

Type of change

Testing

Checklist

codecov[bot] commented 1 year ago

Codecov Report

Merging #81 (a7f36a5) into main (2c4769b) will increase coverage by 0.10%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
+ Coverage   73.31%   73.42%   +0.10%     
==========================================
  Files           6        6              
  Lines         757      760       +3     
==========================================
+ Hits          555      558       +3     
  Misses        202      202              
Files Coverage Δ
idwarp/MultiUnstructuredMesh.py 84.84% <100.00%> (+0.17%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

ArshSaja commented 11 months ago

I ran the multi us mesh with the OWN. It initializes and runs fine.