Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libraries
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
libraries
Commits
22767467
Commit
22767467
authored
2 years ago
by
Neil Gershenfeld (test)
Browse files
Options
Downloads
Patches
Plain Diff
layers fix
parent
cbffc256
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#22990
passed
2 years ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/frep-C.py
+2
-1
2 additions, 1 deletion
python/frep-C.py
with
2 additions
and
1 deletion
python/frep-C.py
+
2
−
1
View file @
22767467
...
...
@@ -88,6 +88,7 @@ int nx = (xmax-xmin)/delta;
int ny = (ymax-ymin)/delta;
int *m = (int*) calloc(nx*ny,sizeof(int));
float layers[] = {{
{
layers
}
}};
int nlayers =
{
nlayers
}
;
int nthreads = std::thread::hardware_concurrency();
//
int fn(float X,float Y,float Z) {{
...
...
@@ -96,7 +97,7 @@ int fn(float X,float Y,float Z) {{
//
void calc(int nx,int ny,int nthreads,int thread) {{
int intensity;
for (int layer = 0; layer <
2
; ++layer) {{
for (int layer = 0; layer <
nlayers
; ++layer) {{
float z = layers[layer];
if (thread == 0)
cout <<
"
z =
"
<< z << endl;
...
...
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