Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
fa09e8a5
Commit
fa09e8a5
authored
15 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
pp
parent
f1081d81
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Solver/functionSpace.h
+3
-11
3 additions, 11 deletions
Solver/functionSpace.h
with
3 additions
and
11 deletions
Solver/functionSpace.h
+
3
−
11
View file @
fa09e8a5
...
...
@@ -59,8 +59,6 @@ template<> struct TensorialTraits<SVector3>
typedef
SVector3
CurlType
;
};
template
<
class
T
>
class
FunctionSpace
{
protected:
...
...
@@ -71,7 +69,6 @@ class FunctionSpace {
typedef typename TensorialTraits<T>::CurlType CurlType;*/
public:
virtual
int
f
(
MElement
*
ele
,
double
u
,
double
v
,
double
w
,
std
::
vector
<
ValType
>
&
vals
)
=
0
;
virtual
int
gradf
(
MElement
*
ele
,
double
u
,
double
v
,
double
w
,
std
::
vector
<
GradType
>
&
grads
)
=
0
;
// virtual int gradf(MElement *ele, double u, double v, double w,std::vector<GradType> &grads, STensor3 &invjac)=0;// on passe le jacobien que l'on veut ...
...
...
@@ -83,13 +80,9 @@ class FunctionSpace {
virtual
int
getKeys
(
MElement
*
ele
,
std
::
vector
<
Dof
>
&
keys
)
=
0
;
};
class
ScalarLagrangeFunctionSpace
:
public
FunctionSpace
<
double
>
{
protected:
protected:
typedef
TensorialTraits
<
double
>::
ValType
ValType
;
typedef
TensorialTraits
<
double
>::
GradType
GradType
;
typedef
TensorialTraits
<
double
>::
HessType
HessType
;
...
...
@@ -103,11 +96,10 @@ protected:
{
// int iComp = i / ele->getNumVertices();
// int ithLocalVertex = i % ele->getNumVertices();
return
Dof
(
ele
->
getVertex
(
i
)
->
getNum
(),
_iField
);
return
Dof
(
ele
->
getVertex
(
i
)
->
getNum
(),
_iField
);
}
public
:
public
:
ScalarLagrangeFunctionSpace
(
int
i
=
0
)
:
_iField
(
i
)
{}
virtual
int
getId
(
void
)
const
{
return
_iField
;};
virtual
int
f
(
MElement
*
ele
,
double
u
,
double
v
,
double
w
,
std
::
vector
<
ValType
>
&
vals
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment