main
|
Last change
on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
217 bytes
|
| Line | |
|---|
| 1 | void f(double *a, double (*b)[10]) {
|
|---|
| 2 | #pragma omp parallel for private(a, b)
|
|---|
| 3 | for (int i = 0; i < 9; i++) {
|
|---|
| 4 | a[i] = b[i][i];
|
|---|
| 5 | }
|
|---|
| 6 | }
|
|---|
| 7 |
|
|---|
| 8 | int main() {
|
|---|
| 9 | double A[10][10] = {0};
|
|---|
| 10 | double *p;
|
|---|
| 11 |
|
|---|
| 12 | p = &A[0][1];
|
|---|
| 13 | f(p, A);
|
|---|
| 14 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.