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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
94fdaec1
Commit
94fdaec1
authored
13 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix win compile
parent
2532407c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Mesh/highOrderTools.cpp
+65
-64
65 additions, 64 deletions
Mesh/highOrderTools.cpp
with
65 additions
and
64 deletions
Mesh/highOrderTools.cpp
+
65
−
64
View file @
94fdaec1
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#include
"linearSystemCSR.h"
#include
"linearSystemCSR.h"
#include
"linearSystemFull.h"
#include
"linearSystemFull.h"
#include
"linearSystemPETSc.h"
#include
"linearSystemPETSc.h"
#include
"OS.h"
#define SQU(a) ((a)*(a))
#define SQU(a) ((a)*(a))
...
@@ -614,18 +615,18 @@ double highOrderTools::apply_incremental_displacement (double max_incr,
...
@@ -614,18 +615,18 @@ double highOrderTools::apply_incremental_displacement (double max_incr,
//+++++++++ Assembly & Solve ++++++++++++++++++++++++++++++++++++
//+++++++++ Assembly & Solve ++++++++++++++++++++++++++++++++++++
if
(
myAssembler
.
sizeOfR
()){
if
(
myAssembler
.
sizeOfR
()){
// assembly of the elasticity term on the
// assembly of the elasticity term on the
clock_t
t1
=
clock
();
double
t1
=
Cpu
();
for
(
unsigned
int
i
=
0
;
i
<
v
.
size
();
i
++
){
for
(
unsigned
int
i
=
0
;
i
<
v
.
size
();
i
++
){
SElement
se
(
v
[
i
]);
SElement
se
(
v
[
i
]);
if
(
mixed
)
El_mixed
.
addToMatrix
(
myAssembler
,
&
se
);
if
(
mixed
)
El_mixed
.
addToMatrix
(
myAssembler
,
&
se
);
else
El
.
addToMatrix
(
myAssembler
,
&
se
);
else
El
.
addToMatrix
(
myAssembler
,
&
se
);
}
}
clock_t
t2
=
clock
();
double
t2
=
Cpu
();
// solve the system
// solve the system
printf
(
"coucou3 %12.5E
\n
"
,
(
double
)(
t2
-
t1
)
/
CLOCKS_PER_SEC
);
printf
(
"coucou3 %12.5E
\n
"
,
t2
-
t1
);
lsys
->
systemSolve
();
lsys
->
systemSolve
();
clock_t
t3
=
clock
();
double
t3
=
Cpu
();
printf
(
"coucou4 %12.5E
\n
"
,
(
double
)(
t3
-
t2
)
/
CLOCKS_PER_SEC
);
printf
(
"coucou4 %12.5E
\n
"
,
t3
-
t2
);
}
}
//+++++++++ Move vertices @ maximum ++++++++++++++++++++++++++++++++++++
//+++++++++ Move vertices @ maximum ++++++++++++++++++++++++++++++++++++
...
...
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