-
Notifications
You must be signed in to change notification settings - Fork 1
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 #4 from CEED/fms-v0.2-dev
Final changes for FMS v0.2
- Loading branch information
Showing
29 changed files
with
1,478 additions
and
1,194 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,69 @@ | ||
# Copyright (c) 2021, Lawrence Livermore National Security, LLC. Produced at | ||
# the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights | ||
# reserved. See files LICENSE and NOTICE for details. | ||
# | ||
# This file is part of CEED, a collection of benchmarks, miniapps, software | ||
# libraries and APIs for efficient high-order finite element and spectral | ||
# element discretizations for exascale applications. For more information and | ||
# source code availability see http://github.com/ceed. | ||
# | ||
# The CEED research is supported by the Exascale Computing Project (17-SC-20-SC) | ||
# a collaborative effort of two U.S. Department of Energy organizations (Office | ||
# of Science and the National Nuclear Security Administration) responsible for | ||
# the planning and preparation of a capable exascale ecosystem, including | ||
# software, applications, hardware, advanced system engineering and early | ||
# testbed platforms, in support of the nation's exascale computing imperative. | ||
|
||
name: Build and test | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
env: | ||
BUILD_C_FLAGS: -Wall -Wextra -pedantic -Werror | ||
BUILD_CXX_FLAGS: -Wall -Wextra -pedantic -Werror | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
build-type: [Debug, Release] | ||
name: ${{matrix.os}}-${{matrix.build-type}} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure | ||
run: | | ||
cmake \ | ||
-B ${{github.workspace}}/build \ | ||
-DCMAKE_BUILD_TYPE=${{matrix.build-type}} \ | ||
-DFMS_ENABLE_TESTS=ON \ | ||
-DCMAKE_C_FLAGS="$BUILD_C_FLAGS" \ | ||
-DCMAKE_CXX_FLAGS="$BUILD_CXX_FLAGS" \ | ||
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON | ||
- name: Build | ||
run: | | ||
cmake \ | ||
--build ${{github.workspace}}/build \ | ||
--config ${{matrix.build-type}} | ||
- name: Install | ||
run: | | ||
cmake \ | ||
--build ${{github.workspace}}/build \ | ||
--config ${{matrix.build-type}} \ | ||
--target install | ||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
run: ctest -C ${{matrix.build-type}} --output-on-failure |
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,37 @@ | ||
# Copyright (c) 2021, Lawrence Livermore National Security, LLC. Produced at | ||
# the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights | ||
# reserved. See files LICENSE and NOTICE for details. | ||
# | ||
# This file is part of CEED, a collection of benchmarks, miniapps, software | ||
# libraries and APIs for efficient high-order finite element and spectral | ||
# element discretizations for exascale applications. For more information and | ||
# source code availability see http://github.com/ceed. | ||
# | ||
# The CEED research is supported by the Exascale Computing Project (17-SC-20-SC) | ||
# a collaborative effort of two U.S. Department of Energy organizations (Office | ||
# of Science and the National Nuclear Security Administration) responsible for | ||
# the planning and preparation of a capable exascale ecosystem, including | ||
# software, applications, hardware, advanced system engineering and early | ||
# testbed platforms, in support of the nation's exascale computing imperative. | ||
|
||
name: Check style | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
check-style: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get astyle | ||
run: sudo apt-get install astyle | ||
|
||
- name: Check style | ||
run: ./apply-style.sh |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ data/ | |
*.out | ||
|
||
# IDE directories | ||
.vscode/ | ||
.vscode/ |
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,24 @@ | ||
███████ ███ ███ ███████ | ||
██ ████ ████ ██ | ||
█████ ██ ████ ██ ███████ | ||
██ ██ ██ ██ ██ | ||
██ ██ ██ ███████ | ||
|
||
CEED's high-order Field and Mesh Specification | ||
|
||
|
||
Version 0.2, released on Sep 10, 2021 | ||
===================================== | ||
|
||
- Added support for writing and reading FmsDataCollections both in ASCII and | ||
binary format via Conduit. | ||
|
||
- Visualization for FMS files is available in VisIt v3.2, visit.llnl.gov. | ||
|
||
- Added regression and code styling. | ||
|
||
|
||
Version 0.1, released on Jul 8, 2018 | ||
==================================== | ||
|
||
- Initial release. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (c) 2021, Lawrence Livermore National Security, LLC. Produced at | ||
# the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights | ||
# reserved. See files LICENSE and NOTICE for details. | ||
# | ||
# This file is part of CEED, a collection of benchmarks, miniapps, software | ||
# libraries and APIs for efficient high-order finite element and spectral | ||
# element discretizations for exascale applications. For more information and | ||
# source code availability see http://github.com/ceed. | ||
# | ||
# The CEED research is supported by the Exascale Computing Project (17-SC-20-SC) | ||
# a collaborative effort of two U.S. Department of Energy organizations (Office | ||
# of Science and the National Nuclear Security Administration) responsible for | ||
# the planning and preparation of a capable exascale ecosystem, including | ||
# software, applications, hardware, advanced system engineering and early | ||
# testbed platforms, in support of the nation's exascale computing imperative. | ||
|
||
function main() | ||
{ | ||
cd $(dirname "$0") | ||
fms_astyle_file="fms.astylerc" | ||
if [[ ! -r "${fms_astyle_file}" ]]; then | ||
echo "FMS's astyle format file not found: '${fms_astyle_file}'. Stop." | ||
exit 21 | ||
fi | ||
|
||
find_astyle | ||
|
||
local old_IFS="${IFS}" | ||
IFS=$'\n' | ||
format_files=($(git ls-files "*.[ch]" "*.[ch]pp")) | ||
if [[ "$?" -ne 0 ]]; then | ||
echo "Error getting list of C/C++ source files from Git. Stop." | ||
exit 22 | ||
fi | ||
IFS="${old_IFS}" | ||
|
||
if ${astyle_bin} --options="${fms_astyle_file}" "${format_files[@]}" | \ | ||
grep "Formatted"; then | ||
printf "\nPlease make sure the changes are committed.\n\n" | ||
return 1 | ||
else | ||
printf "All source files are properly formatted.\n" | ||
fi | ||
return 0 | ||
} # end of function 'main' | ||
|
||
function find_astyle() | ||
{ | ||
astyle_req_version="Artistic Style Version 3.1" | ||
astyle_bin_list=("${ASTYLE_BIN:-astyle}" astyle-3.1) | ||
for astyle_bin in "${astyle_bin_list[@]}"; do | ||
if ! command -v "${astyle_bin}" > /dev/null 2>&1; then | ||
continue | ||
fi | ||
astyle_version="$("${astyle_bin}" --version)" | ||
if [[ "${astyle_version}" != "${astyle_req_version}" ]]; then | ||
continue | ||
fi | ||
return 0 | ||
done | ||
echo "Required astyle version not found: '${astyle_req_version}'." | ||
printf "Astyle commands tried:" | ||
printf " '%s'" "${astyle_bin_list[@]}" | ||
printf ".\n" | ||
exit 23 | ||
} # end of function 'find_astyle' | ||
|
||
|
||
# Invoke the 'main' function | ||
main "$@" |
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 |
---|---|---|
|
@@ -60,4 +60,4 @@ cd build | |
cmake -DFMS_DIR=*fms/install/prefix* .. | ||
make | ||
./main | ||
``` | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ int main(int, char**) { | |
auto a = FmsMeshConstruct(&m); | ||
printf("Hello %d\n", a); | ||
return a; | ||
} | ||
} |
Oops, something went wrong.