forked from openmc-dev/openmc
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openmc-dev#1816 from paulromano/mesh-nan-fix
Prevent divide-by-zero in bins_crossed methods for meshes
- Loading branch information
Showing
4 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Fix /etc/hosts | ||
description: | | ||
Workaround for | ||
"Reverse name lookup is broken for current hostname in ubuntu-latest VMs", | ||
reported as https://github.com/actions/virtual-environments/issues/3185 | ||
runs: | ||
using: composite | ||
steps: | ||
- run: | | ||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
# Ensure that reverse lookups for current hostname are handled properly | ||
# Add the current IP address, long hostname and short hostname record to /etc/hosts file | ||
eth0_ip_addr=$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1) | ||
hostname_fqdn=$(hostname -f) | ||
hostname_short=$(hostname -s) | ||
echo -e "${eth0_ip_addr}\t${hostname_fqdn} ${hostname_short}" | sudo tee -a /etc/hosts | ||
fi | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters