Giter Club home page Giter Club logo

dclaw_mwes's Introduction

working on testing restart capabilities

make environment

conda create -n dclaw_mwe python=3.11 conda activate dclaw_mwe conda install pip

install a few other dependencies

conda install pyyaml -c conda-forge

install D-Claw

cd .. git clone https://github.com/geoflows/D-Claw export CLAW=.../D-Claw cd D-Claw/python pip install -e .

I ran into issues compiling

and did the following to fix

install gfortran from conda-forge

conda install -c conda-forge gfortran

this messed up my FFLAGS, when I set them back to normal, I compiled without error.

export FFLAGS='-O2 -fopenmp -fdefault-double-8 -fdefault-real-8 -fdefault-integer-8 -fallow-argument-mismatch'

for posteriority, when compiler flags were messed up, they had been set to

echo $FFLAGS -march=core2 -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -O2 -pipe -isystem /opt/anaconda3/envs/dclaw_mwe/include

run the two step option

cd ../../dam_break_twostep make new python setup.py make .output

run the restart case

cd ../dam_break_restart make new python setup.py make .data ln -s ../dam_break_twostep/_output/fort.chk0001 restart.data./xgeoclaw

compare the following two files

dam_break_twostep/_output/fort.q0001 <- made without restart dam_break_restart/fort.q0002 <- made with restart

additional notes

dam_break_basecase is a basecase of a not so simple mwe for dclaw

to test restart we have two cases

both have only one grid, level 1

  • dam_break_twostep, which runs two coarse grid timesteps, generating _output/fort.chk0001.

  • symlink _output/fort.chk0001 to dam_break_restart/restart.data

then run ./xgeoclaw from within that directory, the second coarse timestep will be taken, generating a difference.

We had a hard time getting the make .output to see the restart.data file correctly.

dclaw_mwes's People

Contributors

kbarnhart avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.