diff --git a/.github/workflows/Dependency.yml b/.github/workflows/Dependency.yml new file mode 100644 index 00000000..3ef7599e --- /dev/null +++ b/.github/workflows/Dependency.yml @@ -0,0 +1,22 @@ +name: Check Dependencies + +on: [push, pull_request] + +jobs: + check_dependencies: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Check for GLMakie and JustPIC dependencies + run: | + if grep -q "GLMakie" ./Project.toml; then + echo "GLMakie dependency found, failing the test." + exit 1 + fi + if grep -q "JustPIC" ./Project.toml; then + echo "JustPIC dependency found, failing the test." + exit 1 + fi + echo "Neither GLMakie nor JustPIC dependencies found." diff --git a/Project.toml b/Project.toml index 418efc54..62bc1a7d 100644 --- a/Project.toml +++ b/Project.toml @@ -28,7 +28,7 @@ WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192" AMDGPU = "0.6, 0.7, 0.8" Adapt = "3.7.2" CUDA = "4.4.1, 5" -CellArrays = "0.1 " +CellArrays = "0.1, 0.2" GeoParams = "0.5" HDF5 = "0.17.1" ImplicitGlobalGrid = "0.14.0, 0.15.0" diff --git a/src/stokes/Stokes2D.jl b/src/stokes/Stokes2D.jl index 22163eea..e2bb80f7 100644 --- a/src/stokes/Stokes2D.jl +++ b/src/stokes/Stokes2D.jl @@ -496,7 +496,8 @@ function JustRelax.solve!( viscosity_cutoff=(1e16, 1e24), iterMax=50e3, iterMin=1e2, - viscosity_relaxation=1e-3, + viscosity_relaxation=1e-2, + free_surface=false, nout=500, b_width=(4, 4, 0), verbose=true, @@ -622,7 +623,7 @@ function JustRelax.solve!( ρg..., ητ, _di..., - dt, + dt * free_surface, ) # apply boundary conditions flow_bcs!(stokes, flow_bcs) @@ -644,7 +645,7 @@ function JustRelax.solve!( @stress(stokes)..., ρg..., _di..., - dt, + dt * free_surface, ) # errs = maximum_mpi.((abs.(stokes.R.Rx), abs.(stokes.R.Ry), abs.(stokes.R.RP))) errs = (