Giter Site home page Giter Site logo

qsf-examples's Introduction

Examples for QSF library

Introduction

This repository hosts example projects for the QSF header-only C++ library.

QSF is a project aimed at providing efficient and general numerical tools for the field of Strong Field Laser Physics.

It's modular design based extensively on C++ templates and modern C++17 features, allows for creating clear and understandable projects keeping the physics first.

The examples include three-electron reduced-dimensionality models (examples/nitrogen-3e) and some simpler projects.

Requirements

  • compiler with C++17 support

    clang, gcc 9.1 or higher recommended

  • cmake 3.8
  • mpi library

    e.g. openmpi, mpich

  • fftw3 library

    note: intel-provided fftw libraries might cause problems at the moment

Usage

Download the repository recursively and navigate to the directory using:

git clone https://github.com/masteranza/QSF-examples.git --recurse-submodules 
cd QSF-examples

configure the project using one of the provided scripts (depending on the compiler), e.g:

./configure-gcc11

run any of the example projects (e.g. template-ini) using the run.sh script:

./run template-ini

You can inspect the scripts together with the CMakeLists.txt file in case of problems or if you'd like to learn more.

Starting a new project

You can use any of the existing projects gathered in the examples folder as the starting point for your own projects.

It is advised to keep the directory name and the main .cpp filename identical.

There are three ways to provide configurations to a project:

  • command line options (handled by cxxopts library, see nitrogen-3e)
  • ini file (called project.ini) located next to the source file
  • hardcoded in the .cpp file

Examples of each can be found in the examples directory.

qsf-examples's People

Contributors

masteranza avatar

Watchers

 avatar  avatar  avatar  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.