Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pathway to v1.0 #51

Draft
wants to merge 427 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
427 commits
Select commit Hold shift + click to select a range
661bfbc
Begining of test on boundaries
AliceHarang Oct 20, 2021
cabd48d
continue on bnd test + fix on test8 GPU
AliceHarang Oct 27, 2021
7e054c0
on-going fix to test 8
AliceHarang Oct 27, 2021
cd7f780
update testing.cu
AliceHarang Oct 28, 2021
85d63d5
update
AliceHarang Oct 28, 2021
b8add87
on going on Boundary test
AliceHarang Nov 1, 2021
12e0cb3
Add creation of the Parameter list files
AliceHarang Nov 1, 2021
a374107
improve Param list
AliceHarang Nov 2, 2021
7296d65
adjust the different types of input
AliceHarang Nov 2, 2021
e51f1fb
update on forcing part
AliceHarang Nov 3, 2021
0a20d02
switch to python to list the inputs
AliceHarang Nov 5, 2021
9be928e
clean readInput
AliceHarang Nov 5, 2021
08d8341
update the input table script, add comments
AliceHarang Nov 5, 2021
c0bb581
update table
AliceHarang Nov 7, 2021
3a757a8
Add python script to workflows
AliceHarang Nov 8, 2021
761911c
add initial workflow to back-up on gitlab
AliceHarang Nov 8, 2021
a10e014
Add dt init input
AliceHarang Nov 9, 2021
373211a
error on final volume
AliceHarang Nov 9, 2021
39f9096
Test update file in workflow
AliceHarang Nov 9, 2021
14372a2
fixe comment and workflow
AliceHarang Nov 10, 2021
67d6250
remove old parameter list
AliceHarang Nov 10, 2021
f8489e9
Boundary testcase and input table
AliceHarang Nov 24, 2021
29ac2ed
Add dt init input
AliceHarang Nov 9, 2021
9575295
Fix initial min dt and fix xllcorner for asci input
CyprienBosserelle Nov 25, 2021
1aeb416
removing partial boundary dev.
AliceHarang Nov 29, 2021
f17b2eb
Delete c-cpp.yml
AliceHarang Nov 29, 2021
a6bab98
Improve Parameter list
AliceHarang Nov 30, 2021
abdf22b
Small fixes on Parameters list
AliceHarang Dec 1, 2021
c88dbee
fix test on cf
AliceHarang Dec 1, 2021
edb18a5
Merge branch 'development' into self-hosted-CI
AliceHarang Dec 1, 2021
605c5f2
Update documentation (boundaries ex)
AliceHarang Dec 2, 2021
7bff317
typo
AliceHarang Dec 2, 2021
eb5a563
update table
AliceHarang Dec 2, 2021
416fda4
Fix on start value netcdf
AliceHarang Dec 7, 2021
55e6584
Re-structuring input table
AliceHarang Dec 8, 2021
4364466
Merge pull request #53 from CyprienBosserelle/self-hosted-CI
AliceHarang Dec 8, 2021
c4212dc
add cfmap in roughness keyword and create Param switch for rain on bnd
CyprienBosserelle Dec 8, 2021
52b976e
Fix Rain switch for test
CyprienBosserelle Dec 8, 2021
a51da39
change workflow to dev branch
CyprienBosserelle Dec 8, 2021
5c5ba80
Fix deform adapt (#55)
CyprienBosserelle Dec 9, 2021
2882015
Add paramfile as model input and fix float polymorphism (#56)
CyprienBosserelle Dec 9, 2021
201add2
uniform grid-2 zoned ok
AliceHarang Dec 12, 2021
7d36a80
Update README.md
CyprienBosserelle Dec 13, 2021
3c2f80b
Update README.md
CyprienBosserelle Dec 13, 2021
19b0c4e
Update README.md
CyprienBosserelle Dec 13, 2021
717a338
Fix the x y vector, non-adaptative
AliceHarang Dec 13, 2021
01d879a
Update README.md
CyprienBosserelle Dec 13, 2021
16edcb1
Fix adaptative with no zone input
AliceHarang Dec 14, 2021
43fbd08
Only add comments
AliceHarang Dec 14, 2021
59108eb
Merge branch 'development' into zonedOutput
AliceHarang Dec 14, 2021
c26e041
update yml files
AliceHarang Dec 15, 2021
23e7df3
Adapt + multi zone working
AliceHarang Dec 20, 2021
854443b
restrict to level in the zone
AliceHarang Dec 20, 2021
92c6a0d
Beginning testing zonedOutputs
AliceHarang Dec 21, 2021
265418e
typo Adapt <- Adatp
AliceHarang Dec 21, 2021
780b4f4
Add reporting of GPU mem usage
CyprienBosserelle Dec 21, 2021
e187374
testing outputzones on-going
AliceHarang Dec 21, 2021
303d4b3
on going testing
AliceHarang Dec 25, 2021
2f783f1
End of test on zonedoutputs
AliceHarang Jan 21, 2022
fd0da96
change order of bathy interpolation
CyprienBosserelle Feb 13, 2022
abd10e3
Add polygon as model domain (#52)
CyprienBosserelle Mar 8, 2022
61d69d3
Adding atmospheric pressure forcing (#57)
CyprienBosserelle Mar 10, 2022
2189716
Remove Warnings
CyprienBosserelle Mar 13, 2022
fb6d6f8
Fix small error, test ok
AliceHarang Mar 14, 2022
1a6d5f2
Fix to pass auto tests
AliceHarang Mar 14, 2022
573711a
Add test to identify error
AliceHarang Mar 14, 2022
58b2f60
Small fix
AliceHarang Mar 14, 2022
f7eb4e7
test
AliceHarang Mar 14, 2022
a0d1183
test
AliceHarang Mar 15, 2022
a038996
test
AliceHarang Mar 15, 2022
e2f82b3
Merge branch 'development' into zonedOutput
AliceHarang Mar 15, 2022
a32dd5d
documentation and fix
AliceHarang Mar 15, 2022
659e48f
Fix warnings
CyprienBosserelle Mar 15, 2022
29d588c
Merge branch 'development' into zonedOutput
AliceHarang Mar 15, 2022
25cb963
Add adaptmaxiter as a param var + warning fix
CyprienBosserelle Mar 20, 2022
5d75cb8
Add more flexible boundary input reader
CyprienBosserelle Mar 21, 2022
02d1171
adjust readbndline and compile fix for gcc
CyprienBosserelle Mar 21, 2022
095ca07
Adding U and hU in the max/mean outputs
AliceHarang Mar 22, 2022
972f0ef
Begin to add Wet time output
AliceHarang Mar 22, 2022
47ebc9d
Finish Wet duration
AliceHarang Mar 22, 2022
2fd455e
Add CI
AliceHarang Mar 22, 2022
f817671
Fix CI input file
AliceHarang Mar 23, 2022
dfb62e9
Fix Test
AliceHarang Mar 23, 2022
6a96fa4
Force test 1 to use new developments
AliceHarang Mar 24, 2022
f68e4bb
remove unused "vort" and "U" output
AliceHarang Mar 24, 2022
98eb722
Add testing for the crescent order of x and y in nc files.
AliceHarang Mar 24, 2022
881b5b7
Update ReadForcing.cu
AliceHarang Mar 25, 2022
e4ee169
small typo + test python input list
AliceHarang Mar 25, 2022
d96bc36
remove compiler warnings
CyprienBosserelle Mar 28, 2022
7096b57
remove warning
CyprienBosserelle Mar 30, 2022
dcb67d7
Merge branch 'development' into Add_Flooding_outputs
CyprienBosserelle Apr 4, 2022
694f807
Merge branch 'development' into zonedOutput
AliceHarang Apr 4, 2022
7bee39c
Fix issue with DEM written upside down files
CyprienBosserelle Apr 10, 2022
1cdbf53
Flip x or y axis
CyprienBosserelle Apr 11, 2022
0035e62
Merge pull request #54 from CyprienBosserelle/zonedOutput
AliceHarang Apr 13, 2022
7a40eb2
Merge branch 'development' into Add_Flooding_outputs
AliceHarang Apr 13, 2022
8c40183
Merge pull request #58 from CyprienBosserelle/Add_Flooding_outputs
AliceHarang Apr 13, 2022
e8f0fb6
update branche on python list
AliceHarang Apr 13, 2022
d31bcc4
update branche in CI
AliceHarang Apr 13, 2022
73403b9
Absbnd fix (#65)
CyprienBosserelle May 16, 2022
3fe6846
Fix wind forcing for uniform wind
CyprienBosserelle May 17, 2022
2c75ead
Fix init of variable wind forcing
CyprienBosserelle May 17, 2022
0c41c2b
Fix bugs for Wall boundary edge of masked block
CyprienBosserelle May 20, 2022
2481c9e
Fix issues with localising TS output
CyprienBosserelle Jul 12, 2022
33017a9
Update Updateforcing.cu
CyprienBosserelle Jul 18, 2022
7bc6765
Crash detection
AliceHarang Aug 8, 2022
a9f32d7
adjust crash handling
AliceHarang Aug 11, 2022
0c87483
fix to avoid crash msg at the end of any simu
AliceHarang Aug 12, 2022
8916f34
dtmin calculated as a weightd mean
AliceHarang Aug 12, 2022
2b9f0df
Add reading and variable creation
AliceHarang Sep 23, 2022
6dc9f9b
Complete read of the variable and output
AliceHarang Sep 23, 2022
d2162b0
Beginning of the test
AliceHarang Sep 27, 2022
032031a
Add functions to remove infiltrations losses
AliceHarang Sep 28, 2022
84a4e02
re-use the Model variables
AliceHarang Sep 28, 2022
d48a394
running but dt~0
AliceHarang Sep 29, 2022
6c9d409
Small_fix_test
AliceHarang Sep 30, 2022
f9b2b2d
Fix deform trigger (#68)
CyprienBosserelle Oct 12, 2022
c68d6b3
small fixes
AliceHarang Oct 12, 2022
03e80b6
Sanity check and log added
AliceHarang Oct 13, 2022
1c7702c
Add sanity check on the river input
AliceHarang Oct 13, 2022
fea4688
Add cst Wind forcing
AliceHarang Oct 13, 2022
af70ac3
Modify break to change range
AliceHarang Oct 17, 2022
4ec10a5
Add time check on dyn forcings
AliceHarang Oct 17, 2022
88ed4cf
Update actions to fix warning "Node.js 12 actions are deprecated"
AliceHarang Oct 18, 2022
ce2fcd9
Add test10 to workflow
AliceHarang Oct 18, 2022
ab32f5a
writing
AliceHarang Oct 25, 2022
f6432a5
Add bathy to testcase
AliceHarang Oct 25, 2022
9a8db1a
cleaning the code (
AliceHarang Oct 25, 2022
1b14db9
Fix testcase
AliceHarang Oct 26, 2022
82922b2
Update InitialConditions.cu
CyprienBosserelle Oct 28, 2022
c50e2c1
missing ;
CyprienBosserelle Oct 28, 2022
fc0a245
Change infiltration variable name
AliceHarang Nov 3, 2022
870cafd
Add md file
AliceHarang Nov 3, 2022
eaac0ae
Simplify notations, add reference values
AliceHarang Nov 3, 2022
557d59e
Warning + model cleaning
AliceHarang Nov 4, 2022
4acd7ad
Add limiter to initinfiltration
CyprienBosserelle Nov 4, 2022
c7ef4e0
Merge branch 'RainLoss_ILCL' of https://github.com/CyprienBosserelle/…
CyprienBosserelle Nov 4, 2022
1f6d182
cleaning + doc
AliceHarang Nov 6, 2022
1318557
fix latex equation rendering in md file
CyprienBosserelle Nov 21, 2022
281d3f9
Update RainLoss_ILCL-model.md
CyprienBosserelle Nov 22, 2022
bb87aca
Merge pull request #72 from CyprienBosserelle/MapOutputTimesteps-Roun…
AliceHarang Jan 15, 2023
43d6c42
Add a testcase to md
AliceHarang Jan 18, 2023
9f3433a
Update RainLoss_ILCL-model.md
AliceHarang Jan 19, 2023
bc6ee5e
Update RainLoss_ILCL-model.md
CyprienBosserelle Jan 20, 2023
f167747
Merge branch 'RainLoss_ILCL' of https://github.com/CyprienBosserelle/…
AliceHarang Jan 22, 2023
6ccabe1
fix table
AliceHarang Jan 22, 2023
80535a4
Add sanity check
AliceHarang Jan 23, 2023
c56b31f
Add sanity check
AliceHarang Jan 23, 2023
4506ba0
Merge pull request #70 from CyprienBosserelle/RainLoss_ILCL
AliceHarang Jan 23, 2023
76f31b7
Change crash criteria and convert to function
CyprienBosserelle Jan 24, 2023
7fa9951
Add Doxygen file
CyprienBosserelle Jan 24, 2023
34970fb
Create build-documentation.yml
CyprienBosserelle Jan 24, 2023
f06aa7f
Update build-documentation.yml
CyprienBosserelle Jan 24, 2023
7665e19
Update Doxygenfile
CyprienBosserelle Jan 24, 2023
d6f69e8
Update Doxygenfile
CyprienBosserelle Jan 24, 2023
e280b87
fix Doxygen file for *cu
CyprienBosserelle Jan 24, 2023
dc44b44
add extension mapping for cu files
CyprienBosserelle Jan 24, 2023
67fd23f
Add new CSS to Doxygen
CyprienBosserelle Jan 25, 2023
14cf532
Add .JS files to css folder
CyprienBosserelle Jan 25, 2023
7d0cd98
Update Doxygenfile
CyprienBosserelle Jan 25, 2023
ba62f5b
Merge pull request #69 from CyprienBosserelle/Crash_identification
AliceHarang Jan 25, 2023
67968d8
playing with css
CyprienBosserelle Jan 25, 2023
940002d
Merge branch 'development' of https://github.com/CyprienBosserelle/BG…
CyprienBosserelle Jan 25, 2023
32c4f04
test on doxygen
AliceHarang Jan 25, 2023
83d3e61
add figure folder to doc and fix md file ILCL
AliceHarang Jan 25, 2023
f056eaf
doc: enable latex in runner
AliceHarang Jan 25, 2023
651fe92
Optimise gradient (#67)
CyprienBosserelle Jan 25, 2023
e362bea
Create mainpage.md
AliceHarang Jan 25, 2023
e94800f
Doc change mainpage + biblio
AliceHarang Jan 26, 2023
2293071
Fix function declaration
AliceHarang Feb 17, 2023
f195909
Fix forcing interpolation
CyprienBosserelle Feb 21, 2023
52e2298
Test with adding standard name for time axis
CyprienBosserelle Mar 8, 2023
af3b6b8
add time units
CyprienBosserelle Mar 26, 2023
799f19a
Add demo of map dict for name and unit
CyprienBosserelle Mar 28, 2023
61be1ed
Adding STD and Long name to map
CyprienBosserelle Mar 29, 2023
ef582dc
start dev of long and std names
CyprienBosserelle Mar 29, 2023
8a990f9
Fix Sting literal to const Char*
CyprienBosserelle Mar 29, 2023
aeef7ca
implement name attributes
CyprienBosserelle Mar 30, 2023
ca864a9
Add CRS info in nc output
CyprienBosserelle Mar 31, 2023
7abf57c
Add Axis info for GDAL support
CyprienBosserelle Apr 2, 2023
f4266cb
Change crs information to use wkt
AliceHarang Apr 4, 2023
e40bc74
pass CRS in Param struct
AliceHarang Apr 4, 2023
d7a4032
add function getting the CRS, about there!
AliceHarang Apr 5, 2023
9ab3a5c
Fix to pass back the information
AliceHarang Apr 5, 2023
973545e
Change error checking in ReadForcing
CyprienBosserelle May 1, 2023
0f85ae2
Fix outzone domain issues
CyprienBosserelle May 2, 2023
bb6ad9c
Attempt at fixing CRS read for a demo
CyprienBosserelle May 9, 2023
cc810ee
Update ReadForcing.cu
CyprienBosserelle May 18, 2023
3d01593
Fix malloc issue in CRS read function
CyprienBosserelle Jun 13, 2023
41bc4fe
Add limiter for CRS read in nc file only
CyprienBosserelle Jun 13, 2023
26f4a3e
remove readforcing from test
CyprienBosserelle Jun 16, 2023
55072ce
remove default reftime and CRS
CyprienBosserelle Jun 17, 2023
6618d46
Add fctn for string to time_t and sec
CyprienBosserelle Jun 17, 2023
0d6bf01
update new function for reading time
CyprienBosserelle Jun 22, 2023
36aa24d
Add feature to read time as string from txt input
CyprienBosserelle Jul 13, 2023
e7f9a0d
Add ref time as a user input
CyprienBosserelle Jul 13, 2023
f59c0ba
Add time unit reading for NetCDF
CyprienBosserelle Jul 17, 2023
c4e82aa
Some bug fix on units time reading
CyprienBosserelle Jul 17, 2023
43b8205
Fix for UTC time.
CyprienBosserelle Jul 21, 2023
8c03089
Add utctime.o to makefile
CyprienBosserelle Jul 22, 2023
deb23b8
Fix time handling for Y2K38 superbug
CyprienBosserelle Jul 24, 2023
9239d26
Update ConserveElevation.h
AliceHarang Aug 21, 2023
3deb9fe
Update ConserveElevation.h
AliceHarang Aug 21, 2023
b6f70a5
Update Gradients.h
AliceHarang Aug 21, 2023
b029353
Update Halo.h
AliceHarang Aug 21, 2023
ae6a763
Update Write_txtlog.cpp
AliceHarang Aug 21, 2023
bd3eed9
expliit handling of missing/Nan values in Netcdf input
CyprienBosserelle Sep 7, 2023
d02ce41
make compiler happy!
CyprienBosserelle Sep 7, 2023
d3bb757
Happy GCC happy
CyprienBosserelle Sep 7, 2023
079458a
added denan<int> to h file
CyprienBosserelle Sep 7, 2023
da1a1d1
Fix Varname in CRS detection
CyprienBosserelle Sep 12, 2023
b886a87
Update ReadInput.cu
CyprienBosserelle Sep 14, 2023
a194d06
Fix CRS string read
CyprienBosserelle Sep 14, 2023
4c8df85
add datetime string to totatltime/endtime
CyprienBosserelle Sep 17, 2023
a2bcc49
Enforce grdalfa=0 before reading input
CyprienBosserelle Sep 26, 2023
57ebebc
Fix Spherical Grid capability (#78) (#79)
CyprienBosserelle Oct 3, 2023
e4194d8
Adding null characters to end of string to avoid garbage dumping
CyprienBosserelle Oct 5, 2023
82bbb38
need to set an empty string to empty wkt if not understood
CyprienBosserelle Oct 5, 2023
7333ce9
Fix Issues with NAN in dem input
CyprienBosserelle Oct 5, 2023
25baa6c
Merge branch 'CF_compliant' into development
CyprienBosserelle Oct 5, 2023
ab8ee29
Fix readgridncsize merge issue
CyprienBosserelle Oct 6, 2023
e78dd3f
Update README.md
CyprienBosserelle Oct 9, 2023
9510c34
Reduce warnings step 1
CyprienBosserelle Oct 9, 2023
79b3141
test fix test10 crash
CyprienBosserelle Oct 9, 2023
6f671bf
change write2n to clobber
CyprienBosserelle Oct 9, 2023
716826e
Reduce warning step2
CyprienBosserelle Oct 9, 2023
1cc561a
Fix netcdf forcing with unit but no reftime
CyprienBosserelle Nov 13, 2023
ad13dea
Add new version increment
CyprienBosserelle Nov 13, 2023
3310a3b
Update README.md
CyprienBosserelle Jan 23, 2024
4a9b149
Modif to allow multi roughness files
AliceHarang Feb 12, 2024
c469e1e
Begin to add testing
AliceHarang Feb 12, 2024
fcc3b84
merge bathy/roughness tests
AliceHarang Feb 13, 2024
dcd5d00
small update
AliceHarang Feb 13, 2024
36da1e4
Use automatic time variable name for dynamic forcing (#104)
CyprienBosserelle Feb 15, 2024
751ee7d
Finish testing
AliceHarang Feb 21, 2024
6aa1360
add the fixing of the value vs file input reading
AliceHarang Mar 20, 2024
37a1f29
fix tests
AliceHarang Mar 22, 2024
aaf301b
Fix Min-max initialisation in test 13
CyprienBosserelle Mar 22, 2024
885119f
Fix Test and add auto-testing
AliceHarang Mar 25, 2024
ec371b2
Add input cst for il/cl for rain losses
AliceHarang Mar 25, 2024
573d453
Modifying lock on ploting infiltration variables
AliceHarang Mar 25, 2024
87b471e
Add test for IL/CL value input
AliceHarang Mar 27, 2024
6295d65
Update ReadForcing.cu
CyprienBosserelle May 31, 2024
4a0bf92
Merge pull request #102 from CyprienBosserelle/Roughness_multi_input
AliceHarang Jun 3, 2024
52b3d68
Add comment on meanmax func
CyprienBosserelle Jun 18, 2024
36c1e85
New Bnd + New Save method (#110)
CyprienBosserelle Aug 13, 2024
3216eb4
Update AdaptCriteria.cu
CyprienBosserelle Aug 13, 2024
05a84bb
Clean testing
AliceHarang Aug 14, 2024
0388c2a
Add AOI test to automatic tests
AliceHarang Aug 14, 2024
67bbf03
Create Install.md
CyprienBosserelle Oct 31, 2024
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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
uto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
41 changes: 41 additions & 0 deletions .github/workflows/Input-list_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# Also use advice from: https://github.com/Kludex/update-file

name: Input-Keys, Python script

on:
push:
branches: [ development ]
pull_request:
branches: [ development ]

jobs:
update-file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create the MD file listing the input keys
run: |
python ReadInput.py
- name: Update Input table
uses: test-room-7/action-update-file@v1
with:
file-path: ParametersList-py.md
commit-msg: Automatic update of Input parameter list
github-token: ${{ secrets.GITHUB_TOKEN }}
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install flake8 pytest
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# - name: Lint with flake8
# run: |
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
#- name: Create the MD file listing the input keys
# run: |
# python ReadInput.py
35 changes: 35 additions & 0 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This is a basic workflow to help you get started with Actions

name: Documentation

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ development ]

jobs:
build-documentation:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# Build the HTML documentation
- name: Doxygen Action
uses: mattnotmitt/[email protected]
with:
doxyfile-path: ./Doxygenfile
working-directory: .
enable-latex: true

# Deploy the HTML documentation to GitHub Pages
- name: GH Pages Deployment
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/html/
enable_jekyll: false
allow_empty_commit: false
force_orphan: true
publish_branch: gh-pages
110 changes: 110 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ development, Test_new_BND_A100]
pull_request:
branches: [ development, Test_new_BND_A100]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Build_and_CI_Tests:
# The type of runner that the job will run on
runs-on: [self-hosted, linux, x64, gpu]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
#- name: Launch of BG_Flood tests
# run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: creation of the bathy and Params files
run: |
echo "ncols 3" > bathy.asc
echo "nrows 3" >> bathy.asc
echo "xllcenter -1" >> bathy.asc
echo "yllcenter -1" >> bathy.asc
echo "cellsize 1" >> bathy.asc
echo "nodata_value -9999" >> bathy.asc
printf "0.0 0.0 0.0" >> bathy.asc
printf "0.0 0.0 0.0" >> bathy.asc
printf "0.0 0.0 0.0" >> bathy.asc
echo "test = 0;" >> BG_param.txt
echo "gpudevice = 0;" >> BG_param.txt
echo "bathy = bathy.asc;">>BG_param.txt
# Compilation of the code
- name: compilation of the code
run: make
# Running the tests
- name: running test 0, Gaussian hump propagation
run: ./BG_Flood
- name: running test 1, Vertical discharge in all directions, different grid adaptation
run: |
sed -i 's/test = 0/test = 1/' BG_param.txt
./BG_Flood
- name: running test 2, Gaussian wave - CPU vs GPU
run: |
sed -i 's/test = 1/test = 2/' BG_param.txt
./BG_Flood
- name: running test 3, Reduction algorithm
run: |
sed -i 's/test = 2/test = 3/' BG_param.txt
./BG_Flood
- name: running test 5, Lake at rest
run: |
sed -i 's/test = 3/test = 5/' BG_param.txt
./BG_Flood
- name: running test 6, Mass conservation on slope
run: |
sed -i 's/test = 5/test = 6/' BG_param.txt
./BG_Flood
- name: running test 7, rain mass conservation
run: |
sed -i 's/test = 6/test = 7/' BG_param.txt
./BG_Flood
- name: running test 8, rain input validation
run: |
sed -i 's/test = 7/test = 8/' BG_param.txt
./BG_Flood
- name: running test 9, Test on zone-outputs
run: |
sed -i 's/test = 8/test = 9/' BG_param.txt
./BG_Flood
- name: running test 10, Test on infiltration
run: |
sed -i 's/test = 9/test = 10/' BG_param.txt
./BG_Flood

- name: running test 11, Test on Wet/dry instability
run: |
sed -i 's/test = 10/test = 11/' BG_param.txt
./BG_Flood

- name: running test 12, Test on calendar time
run: |
sed -i 's/test = 11/test = 12/' BG_param.txt
./BG_Flood

- name: running test 13, Test on multi-Bathy / Multi-Roughness input
run: |
sed -i 's/test = 12/test = 13/' BG_param.txt
./BG_Flood

- name: running test 14, Test on AOI implementation aa wall bnb
run: |
sed -i 's/test = 13/test = 14/' BG_param.txt
./BG_Flood


31 changes: 31 additions & 0 deletions .github/workflows/push_back-up_gitlab.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## from https://github.community/t/push-from-action-to-different-remote-repo/17848/2

name: push to gitlab for back-up

on:
# push:
# branches: [self-hosted-CI]
# pull_request:
# branches: [master]
workflow_dispatch:

jobs:
repo-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
ref: 'master'
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
name: id_rsa # optional
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- run: |
git remote add gitlab [email protected]:jingzhuyan/new1.git
git config --global user.email " ****@***"
git config --global user.name "yanjingzhu"
git checkout master
git push -u gitlab master
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ build
*~
CMakeSettings.json
.vs
*.dll
*.exe
54 changes: 54 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
language: cpp

sudo: enabled

compiler:
- gcc

matrix:
include:
- name: CUDA 9
env:
- CUDA=9.2.148-1
- CUDA_SHORT=9.2
- UBUNTU_VERSION=ubuntu1604
dist: xenial
- name: CUDA 10
env:
- CUDA=10.1.105-1
- CUDA_SHORT=10.1
- UBUNTU_VERSION=ubuntu1804
dist: bionic

before_install:
- INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb
- wget http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER}
- sudo dpkg -i ${INSTALLER}
- wget https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/7fa2af80.pub
- sudo apt-key add 7fa2af80.pub
- sudo apt update -qq
- sudo apt install -y cuda-core-${CUDA_SHORT/./-} cuda-cudart-dev-${CUDA_SHORT/./-} cuda-cufft-dev-${CUDA_SHORT/./-}
- sudo apt clean
- CUDA_HOME=/usr/local/cuda-${CUDA_SHORT}
- LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
- PATH=${CUDA_HOME}/bin:${PATH}

- sudo apt-get update
- sudo apt-get -y install libnetcdf-dev

before_script:
- echo "ncols 3" > bathy.asc
- echo "nrows 3" >> bathy.asc
- echo "xllcenter -1" >> bathy.asc
- echo "yllcenter -1" >> bathy.asc
- echo "cellsize 1" >> bathy.asc
- echo "nodata_value -9999" >> bathy.asc
- printf "0.0 0.0 0.0" >> bathy.asc
- printf "0.0 0.0 0.0" >> bathy.asc
- printf "0.0 0.0 0.0" >> bathy.asc
- echo "test=1">BG_param.txt
- echo "gpudevice=-1">>BG_param.txt
- echo "bathy=bathy.asc">>BG_param.txt
script:
- make
- ./BG_Flood
Empty file modified Adapt_Flow_kernel.cu
100644 → 100755
Empty file.
Empty file modified Adapt_gpu.cu
100644 → 100755
Empty file.
Empty file modified BG_1D.jl
100644 → 100755
Empty file.
Empty file modified BasCart_gpu.cu
100644 → 100755
Empty file.
Empty file modified Bas_Cart_CPU.cpp
100644 → 100755
Empty file.
Empty file modified CMakeLists.txt
100644 → 100755
Empty file.
Loading
Loading