Code Monkey home page Code Monkey logo

crnsimul's Introduction

crnsimul

crnsimul is an application that simulates Chemical Reaction Networks.

Trying it out

If you have installed the program, you can just execute them using ./examples/multiply.crn, and they will run. If not, you need to specify the interpreter you are using explicitly, so ./bin/crnsimul -P examples/multiply.crn.

See the examples directory for example reaction networks.

Also, see the manual.

Building

The project uses cmake. To compile a project using cmake, the following commands should be used:

cmake .
make

Besides that, there currently is also one submodule. Run

git submodule update --init --recursive

to download it Afterwards, you should be able to find the executable in the ./bin folder

Dependencies

The dependencies can be found in the dockerfile. For Arch Linux, they can be installed by running

sudo pacman -S clang flex bison boost gnuplot gtest 

Better auto-complete with language servers

Language servers require a compile_commands.json file to be present to enable better autocompletion support. To generate it when running cmake, modify your cmake command to be

cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1

For convenience, you can add alias cmake="cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1" to your .bashrc.

Formatting

Github has a CI step implemented that requires that all code is compliant with the .clang-format file in the root of the project directory. You can use the format.sh file to format the code automatically, or use a tool that implements clang-format on save for instance. For vim I can recommend neoformat.

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.