Skip to content

amstokely/ode_solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Clone the ode_solver repository

git clone https://github.com/amstokely/ode_solver.git

Enter the projects root directory,

cd ode_solver

create a build directory

mkdir build

and enter it.

cd build

If netcdf is discoverable by cmake as NetCDF, then run

cmake ..

However, if you have a new version of netcdf, which is called netCDF from cmake's perspective, then you have to manually set the netcdf include directory and shared library paths. These can be found by running nc-config --includedir and nc-config --libs, respectively. The below command wraps this into a single cmake command.

cmake .. -DNetCDF_INCLUDE_DIR=$(nc-config --includedir) -DNetCDF_LIBRARIES=$(nc-config --libs)/libnetcdff.so

Now build the project

make

and return to the root directory

cd ..

Examples

Shallow Water Equations

* Generate an input NetCDF parameter file using the ```set_params.py``` script ```bash python set_params.py ``` * This creates an input file called ```params.nc``` which stores the initial conditions, grid size, and dx/dy values used to solve the shallow water equations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published