Skip to content

Commit

Permalink
New Bnd + New Save method (#110)
Browse files Browse the repository at this point in the history
* Bug fix and implement  no-flux approach

* fix no flux top and right bnd

* Update Boundary.cu

Added new ABS bnd fcn for flux

* Fix new halo wall bnds

* convert test into proper CI test

* Fix ABS1D Q calculations

* ABS1DQ clean function call and add qmean

* ABS1DQ Fix h miising in fctn call

* Add New "NoFlux" Bnd to BBox bnd

* Fix case on header call

* fix on left and bot wall

* make test for all side

* u v bnd fix

* add comment to test

* clean up the function

* Update Boundary.h

* implement handling fcnt for flux bnd

* Fix wall bnd for Left and right side

Also improve the test!

* Update Testing.cu

* fix for flux test-demo

* Update Boundary.cu

* build new structures to support AOI bnds

* Add workflow for new bnd initialisation

* Update InitialConditions.cu

* Start the init bnd functionality

* Fix compile error forcing.h

* Update InitialConditions.cu

* fix to compile

* Update ReadInput.cu

* progress new bnd segment

* Update ReadInput.cu

* Add bndpoly functionality (Work in progress)

* Added function to read bnd segment polygon

* remove fileexist function

* add new bnd seg to GPU mem

* Add fill value of 0 for qmean

* finish main workflow for new BND for GPU

* Clean-up and debugging new boundary

* DEBUG ABS bnd

* Add limiter to remove instability near dry cells

* Add taper to initial condition

* Fix Dynamic forcing bnd

* Ooops

* debug check

* Add CPU functions for bnd flux

* Update Testing.cu

* prevent fail in CPUvsGPU test

* Bring A100 fix to the new boundary to better test on HPC. this should be descarde if it fails but may be pulled to Dev branch if successfull. (#109)

* switch off deflate

* Add function to optimise output writing

* Update Write_netcdf.cu

* debug level index when writting

* fix + update of def nc var

* Make loop increment declaration cleaner

* Hotfix for deform

This has been broken for a while!

* Try fix aoi polygon

* Add parameter to switch on/off the saving per block feature

* Update ReadInput.cu

* Fix GPU/CPU difference in new bnd

* Fix failing test 0

* Fix AOI wall test

* Update Boundary.cu

* Update ReadInput.cu

* Update main.yml

* Update main.yml

* Fix missing brace in testing
  • Loading branch information
CyprienBosserelle authored Aug 13, 2024
1 parent 52b3d68 commit 36c1e85
Show file tree
Hide file tree
Showing 28 changed files with 2,418 additions and 101 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ development ]
branches: [ development, Test_new_BND_A100]
pull_request:
branches: [ development ]
branches: [ development, Test_new_BND_A100]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
14 changes: 14 additions & 0 deletions src/Arrays.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ struct AdvanceP
};


struct outP
{
float* z;
short* z_s;
int level;
double xmin, xmax, ymin, ymax;
};


struct maskinfo
{

Expand All @@ -67,8 +76,13 @@ struct maskinfo
int* blks; // array of block where bnd applies
// 8 digit binary where 1 is a mask and 0 is not a mask with the first digit represent the left bottom side the rest is clockwise (i.e.left-bot left-top, top-left, top-right, right-top, right-bot, bot-right, bot-left)
int* side; // e.g. 11000000 for the entire left side being a mask

int type = 0;


};


// outzone info used to actually write the nc files (one nc file by zone, the default zone is the full domain)
struct outzoneB
{
Expand Down
Loading

0 comments on commit 36c1e85

Please sign in to comment.