Comments (2)
I think the basic answer is: GridFunction::ProjectCoefficient(Coefficient &coeff)
is not meant to be used with multi-component (vdim > 1) GridFunction
s. This also applies to GridFunction
s that use vector finite elements (like Nedelec or Raviart-Thomas FEs) even when vdim = 1.
Instead, in these cases, use GridFunction::ProjectCoefficient(VectorCoefficient &vcoeff)
, or (in the case scalar FEs with vdim > 1) GridFunction::ProjectCoefficient(Coefficient *coeff[])
.
from mfem.
@v-dobrev Thank you!
from mfem.
Related Issues (20)
- Is there a example for time-dependet RHS ? HOT 1
- How to compare Gradient created by serial code to Gradient created by parallel code? HOT 1
- Computing the static magnetic field energy HOT 3
- CutFEM in MFEM
- Fails to build against sundials-7 HOT 1
- Dirichelet boundary condition in a time-dependent problem HOT 3
- importing geometry/models HOT 4
- Why is dt updated 3 times in Newmark class HOT 3
- Moonolith ex1p HOT 12
- Should d2udt2 be set to 0 when Dirichlet boundary condition is applied? HOT 4
- An example of wave equation with time-dependent inhomogeneous Dirichlet boundary condition
- Downloading MFEM using Homebrew HOT 1
- How to integrate extra terms in the thermal diffusion (conduction) equation in axi-symmetric cylindrical co-ordinates
- QuadratureSpace and FinitelElementSpace discrepancy for GetVDim HOT 7
- Representative force along a Dirichlet boundary condition
- MPI Fortran library cannot be found when linking in downstream projects when STRUMPACK is enabled HOT 10
- Finding corresponding DoFs after symmetric operations
- Robin boundary condition for curl operator HOT 1
- Mixed Bilinear Form Integrator for Strong Laplacian in IGA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mfem.