Giter Site home page Giter Site logo

gerris_practice's Introduction

Gerris practice

Some Gerris (Popinet 2003) codes.

Some tips and tricks:

  1. Built-from-source code change: Line 416 of "init.c": change to:
MPI_Comm_set_errhandler (MPI_COMM_WORLD, MPI_ERRORS_ARE_FATAL);
  1. Gerris-style syntax-highlighting: C-syntax is good enough. Follow these threads:

https://unix.stackexchange.com/questions/137989/how-to-change-default-syntax-highlighting-for-header-file-in-kate

https://gitlab.com/-/snippets/4499

  1. Possible error in some distros:
gerris: file `column.gfs' is not a valid simulation file
column.gfs:212:12: cannot load module: /usr/local/lib/gerris/libgfsview2D.so: cannot open shared object file: No such file or directory

Solution: make a symbolic link to the correct path:

sudo ln /usr/lib/x86_64-linux-gnu/gerris/libgfsview2D-0.0.1.so libgfsview2D.so

sudo ln /usr/lib/x86_64-linux-gnu/gerris/libgfsview3D-0.0.1.so libgfsview3D.so

Gfsview cannot be installed in Ubuntu 22.04 from source?

  1. Gfsview compilation error for Ubuntu 22.04:
/usr/bin/ld: gfsview2D-main.o: undefined reference to symbol 'XSync'
/usr/bin/ld: /lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:395: gfsview2D] Error 1

Solution: include necessary libraries

./configure LIBS=-lX11
  1. Some good reads:

https://resources.oreilly.com/examples/9781565922259/

gerris_practice's People

Contributors

mgyby avatar

Watchers

 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.