How to get your question answered

:bempp: Welcome

Welcome to the Bempp Discourse. Before asking your first question, we recommend that you read this guide. Following the guidance here will make it more likely that you get a useful answer to your question.

Before asking a question, you should:

  • Use the search feature to see if a similar question has been asked.

To help us answer your question, you should:

  • Give your post a title that makes it clear what you are asking about.
  • When asking about code, you should post a minimal working example (MWE) of a code that fails.
  • Include any error messages that your MWE gives.
  • Include the version of Bempp you are using.

How to make a MWE

A good example of a MWE is the following, as it is the shortest code that causes an error:

from bempp.api import shapes
grid = bempp.api.shapes.sphere[0.1]

Alongside this, you should post the error it causes:

File "mwe.py", line 2, in <module>
    grid = shapes.sphere[0.1]
TypeError: 'function' object is not subscriptable

This is a good MWE because:

  • It is the shortest possible code that causes this error
  • It includes everything needed, so can be copied and pasted and run immediately
  • The error messages are included

(In this example, the error can be fixed by replacing the square brackets in sphere[0.1] with round brackers: sphere(0.1).)

Formatting your post

You can use markdown formatting to format your post.

You can include maths in your post by including LaTeX between dollar signs. For example, $(x-3)(x+2)=x^2-x-6$ is displayed as (x-3)(x+2)=x^2-x-6.

To include code in your code, put three backticks (```) before and after your code block. Short code snippets can be included in a paragraph by placing one backtick before and after the code.