Commit 2872e598 authored by Kirill Terekhov's avatar Kirill Terekhov
Browse files

Guard openmp in define for FVDiscr example

parent 2a29af27
......@@ -163,7 +163,9 @@ int main(int argc,char ** argv)
//~ std::cout << m->GetProcessorRank() << " A,x,b interval " << idmin << ":" << idmax << " size " << idmax-idmin << std::endl;
// Solve \nabla \cdot \nabla phi = f equation
#if defined(USE_OMP)
#pragma omp parallel for
#endif
//for( Mesh::iteratorFace face = m->BeginFace(); face != m->EndFace(); ++face )
for(Storage::integer fi = 0; fi < m->FaceLastLocalID(); ++fi) if( m->isValidElement(FACE,fi) )
{
......@@ -228,7 +230,9 @@ int main(int argc,char ** argv)
//for( Mesh::iteratorCell cell = m->BeginCell(); cell != m->EndCell(); ++cell )
#if defined(USE_OMP)
#pragma omp parallel for
#endif
for(Storage::integer ci = 0; ci < m->CellLastLocalID(); ++ci) if( m->isValidElement(CELL,ci) )
{
Cell cell(m,ComposeHandle(CELL,ci));
......@@ -264,7 +268,9 @@ int main(int argc,char ** argv)
Storage::real err_C = 0.0, err_L2 = 0.0;
//for( Mesh::iteratorCell cell = m->BeginCell(); cell != m->EndCell(); ++cell )
#if defined(USE_OMP)
#pragma omp parallel for
#endif
for(Storage::integer ci = 0; ci < m->CellLastLocalID(); ++ci) if( m->isValidElement(CELL,ci) )
{
Cell cell(m,ComposeHandle(CELL,ci));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment