Coder Social home page Coder Social logo

parrsb's Issues

Connectivity fails when running in serial

Describe the bug
Sometime in the last month, something broke in parSB related to how the connectivity works for serial cases. When I run a case in serial, I get a negative Jacobian error for every element in the mesh, but this error disappears and the case runs as normal if I run in parallel.

The reason I'm sure the error lies somewhere in parSB is because if you pre-generate the .co2 file, there is no error. So something is wrong with the automatic .co2 file generation for serial problems.

To Reproduce
I've attached a few input files that run with nekRS for you to replicate the problem. Download these files and run the following:

This fails with negative Jacobian errors:

nrsmpi pyramid 1 

This works:

nrsmpi pyramid 2

This also works:

gencon
nrsmpi pyramid 1

Expected behavior
Cases should be able to run in serial.

Refactor Internal structs and memory management

  • Remove type from struct rcb_element and struct rsb_element
  • Remove globalId0 from struct rsb_element
  • Replace GenmapMalloc by tmalloc when allocating structs
  • Replace GenmapMalloc by buffer_reserve when allocating arrays
  • Replace GenmapFree by free and buffer_free
  • Replace GenmapX by gslib types where X is int, long, uint, ulong.

Select `gs_method` automatically in gs_setup

Currently, we have hard coded gs_crystal in genmap-laplacian.c and gs_pairwise in
genmap-quality.c. We should select these method automatically. May be we do this once
at the top level ?

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.