Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
- name: Build AdditiveFOAM
run: |
. /opt/openfoam10/etc/bashrc
cd applications/solvers/additiveFoam
./Allwmake
- name: Test AdditiveFOAM
run: |
Expand Down
10 changes: 10 additions & 0 deletions Allwmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

# Parse arguments for library compilation
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments

# Compile AdditiveFOAM libraries and applications
applications/Allwmake $targetType $*

#------------------------------------------------------------------------------
10 changes: 10 additions & 0 deletions applications/Allwmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

# Parse arguments for library compilation
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments

wmake -all $targetType solvers
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the same as the following?

cd solvers/additiveFoam
Allwmake

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is more generalized form, but the behavior will be the same in the current context. This implementation is taken from (https://github.com/OpenFOAM/OpenFOAM-10/blob/89f925dc708d068f84f51e8317e3bebcda64f5cb/applications/Allwmake#L21), to build any libraries and applications inside of the specified directory tree.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the source script for wmake, which will check for Allwmake scripts in each directory:

https://github.com/OpenFOAM/OpenFOAM-10/blob/89f925dc708d068f84f51e8317e3bebcda64f5cb/wmake/wmake#L302

wmake -all $targetType utilities

#------------------------------------------------------------------------------