Giter Site home page Giter Site logo

geoscience-community-codes / molasses Goto Github PK

View Code? Open in Web Editor NEW
6.0 5.0 1.0 9.46 MB

MOLASSES (MOdular LAva Simulation Software for the Earth Sciences) - The MOLASSES model relies on a cellular automata algorithm to estimate the area inundated by lava flows.

Home Page: https://gscommunitycodes.usf.edu/geoscicommunitycodes/public/molasses/molasses.php

License: GNU General Public License v3.0

C 95.23% C++ 0.81% Makefile 1.73% Perl 2.02% Shell 0.20%
lava-flow gdal c-code volcanology gmt-plot cellular-automata-algorithm multi-vent

molasses's Introduction

NAME

MOLASSES

MOLASSES stands for MOdular LAva Simulation Software for Earth Science.

DESCRIPTION

MOLASSES is an in-progress fluid flow simulator, written in C. The MOLASSES model relies on a cellular automata algorithm to estimate the area inundated by lava flows.

CODE REQUIREMENTS

  1. MOLASSES requires the GDAL C libraries and a C compiler. GDAL libraries and development files are available for many systems (http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries); install both the gdal library and the header (development) files. We have tested this program on computers that use the C compiler gcc.

  2. MOLASSES requires the memory management software GC (http://www.hboehm.info/gc/). Install both library (lib) and header files (dev). See the readme file in the external_files directory for additional info.

  3. MOLASSES requires RNGLIB, a C library which implements random number generators (https://people.sc.fsu.edu/~jburkardt/c_src/rnglib/rnglib.html). Also, See the readme file in the external_files directory for additional info.

  4. MOLASSES requires a DEM (Digital Elevation Model) in a format recognized by the GDAL code library. The DEM should extend beyond the boundaries of the lava flow(s).

  5. MOLASSES requires a configuration file that is specified on the command line when executing the code.

LICENSE

Copyright (C) 2015-2020  
Laura Connor ([email protected])
Jacob Richardson 
Charles Connor

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>. 

COMPILING and INSTALING THE CODE

Before compilation of MOLASSES modify the makefile in the top-level directory for your use.

  1. Check to make sure that the path to GDAL and gcc are properly set.

  2. The module names at the top of the Makefile may be changed to accomadate alternative model algorithms. This name refers to a new C-code file (for the alternative algorithm) in the src directory.

To compile and install MOLASSES execute the following commands:

	make
	make install

'make' compiles the code; 'make install' copies the code to a 'bin' (program) directory specified in the top-level makefile.

PROGRAM EXECUTION

To run molasses type:

$PATH_TO_MOLASSES/$molasses $config_file

where $PATH_TO_MOLASSES indicates where the executable code is located, $molasses indicates the exact name of the compiled code, and $config_file indicates the name of the configuration file. It is most convenient if the configuration file resides in your working directory.

molasses's People

Contributors

ljc-geo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

samkrasnoff

molasses's Issues

Compile errors on Crostini Debian

On Crostini Debian, I can't quite get the thing to compile. Every time I try I get

/usr/bin/ld: ../lib/libran.a(ranlib.o): warning: relocation against `fputc@@GLIBC_2.2.5' in read-only section `.text'

for some unknown reason.

I've tried adding -Wno-error and -w to the CFLAGS, but it doesn't seem to change anything. what could be causing this?

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.