View Issue Details

IDProjectCategoryView StatusLast Update
0004078OpenFOAMContributionpublic2024-05-22 16:14
Reportercgoessni Assigned Tohenry  
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Versiondev 
Fixed in Versiondev 
Summary0004078: mergeMeshes is missing "timeSelector::addOptions()"
DescriptionmergeMeshes seems to be able to select a time (https://github.com/OpenFOAM/OpenFOAM-dev/blob/d21e75ac740b0d242e85141d7a531e71073b3fc5/applications/utilities/mesh/manipulation/mergeMeshes/mergeMeshes.C#L132), but it is missing a "timeSelector::addOptions()" call to make this feature fully functional. Without this call,

$ mergeMeshes -time 5 ...

would yield an error since -time is not a recognised command line option. The attached diff would resolve that, and works for our applications.
TagsNo tags attached.

Activities

cgoessni

2024-05-15 08:32

reporter  

mergeMeshes_diff.txt (571 bytes)   
diff --git a/applications/utilities/mesh/manipulation/mergeMeshes/mergeMeshes.C b/applications/utilities/mesh/manipulation/mergeMeshes/mergeMeshes.C
index b39d9a1..f562a5c 100644
--- a/applications/utilities/mesh/manipulation/mergeMeshes/mergeMeshes.C
+++ b/applications/utilities/mesh/manipulation/mergeMeshes/mergeMeshes.C
@@ -71,6 +71,8 @@ int main(int argc, char *argv[])
     argList::addNote("Merge meshes without stitching");
 
     argList::noParallel();
+    timeSelector::addOptions();
+
     #include "addOverwriteOption.H"
     #include "addRegionOption.H"
 
mergeMeshes_diff.txt (571 bytes)   

henry

2024-05-22 16:14

manager   ~0013249

Resolved by commit f9d03d6ad9d359e027e1a581100274a9191b04a6

Issue History

Date Modified Username Field Change
2024-05-15 08:32 cgoessni New Issue
2024-05-15 08:32 cgoessni File Added: mergeMeshes_diff.txt
2024-05-22 16:14 henry Assigned To => henry
2024-05-22 16:14 henry Status new => resolved
2024-05-22 16:14 henry Resolution open => fixed
2024-05-22 16:14 henry Fixed in Version => dev
2024-05-22 16:14 henry Note Added: 0013249