- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do you know how to express the continuous red line with the previous line as follows?
!$OMP PARALLEL DEFAULT(PRIVATE),SHARED(i, j,k,ucn,q,dc,de,dz)
!$OMP& SHARED(qq,qw) ---> Question??
:
:
!$OMP END PARALLEL
If adding the + or &, the complier make the error message.
adi.f90(10): error #5082: Syntax error, found '&' when expecting one of:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So what you want is this:
[plain]!$OMP PARALLEL DEFAULT(PRIVATE),SHARED(i, j,k,ucn,q,dc,de,dz), &The comma between clauses is optional, but I think for style you should be consistent as to whether you use it or not.
!$OMP& SHARED(qq,qw) [/plain]
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reading from here: https://computing.llnl.gov/tutorials/openMP/#Directives
I would suppose, if this is freeform fortran that
$OMP BLABLA &
$OMP BLABLA2
would be the right way...
(infering from "All Fortran free form rules for line length, white space, continuation and comment columns apply for the entire directive line")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So what you want is this:
[plain]!$OMP PARALLEL DEFAULT(PRIVATE),SHARED(i, j,k,ucn,q,dc,de,dz), &The comma between clauses is optional, but I think for style you should be consistent as to whether you use it or not.
!$OMP& SHARED(qq,qw) [/plain]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yep, thanks for the correction! :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do you know how to express the continuous red line with the previous line as follows?
!$OMP PARALLEL DEFAULT(PRIVATE),SHARED(i, j,k,ucn,q,dc,de,dz)
!$OMP& SHARED(qq,qw) ---> Question??
:
:
!$OMP END PARALLEL
If adding the + or &, the complier make the error message.
adi.f90(10): error #5082: Syntax error, found '&' when expecting one of:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How many lines you can create in such manner? Is it any kind of limitations?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How many lines you can create in such manner? Is it any kind of limitations?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page