GithubHelp home page GithubHelp logo

xiaoyixie / disco Goto Github PK

View Code? Open in Web Editor NEW

This project forked from duffell/disco

0.0 2.0 0.0 155 KB

A moving-mesh magnetohydrodynamics code designed for the study of astrophysical disks.

License: GNU General Public License v3.0

C 98.66% Makefile 0.62% Python 0.72%

disco's Introduction

#Disco A 3D Moving-Mesh Magnetohydrodynamics code designed for the study of astrophysical disks.

By Paul Duffell

Thank you for your interest in the Disco code.

The license for this code is GPL. The GPL license should be contained in this directory.

Please cite me if you use this work. In particular, cite my paper, Duffell (2016).

I posted this code because I believe in transparency in science, not because I am advertising this code or attempting to promote its extensive use. I am happy to answer the occasional question, but I hope that you will attempt to solve most issues on your own.

Having said that, here is how you set up the code:

This code is parallel, and uses mpich2. The code should compile so long as "mpicc" works. If you don't have MPI, it is straightforward to get. Look for "mpich2" using macports or homebrew.

The only other important dependency is HDF5. It is possible to compile without HDF5 (ascii output) but the default assumes you have HDF5.

The following three files are necessary for setting up the code:

Makefile_dir.in

Makefile_opt.in

in.par

The first two are pulled into the makefile and are necessary for compiling, and the last is a parameter file, which the code looks for at runtime.

You can find many "Makefile_opt" and "in.par" files in the Templates/ directory. Simply copy them over, e.g.

cp Templates/isentropic.in ./Makefile_opt.in

cp Templates/isentropic.par ./in.par

"Makefile_dir.in" currently just includes the directory where HDF5 is located. If you are compiling with HDF5, just modify this file so it points to the right place.

After that, so long as "mpicc" works, all you have to do is type "make" and it should compile.

COMPILING WITHOUT HDF5:

If you wish to compile without HDF5, open "Makefile_opt.in" and adjust the following settings:

OUTPUT = h5out

RESTART = h5in

should be changed to

OUTPUT = ascii

RESTART = none

This should remove any dependency on HDF5.

disco's People

Contributors

chomps avatar geoffryan avatar duffell avatar

Watchers

James Cloos avatar Xiaoyi Xie 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.