Commit 3a279bfd by Francois Gygi

added OpenMP pragmas

git-svn-id: http://qboxcode.org/svn/qb/trunk@1170 cba15fb0-1239-40c8-b417-11db7ca47a34
parent e2727b2c
......@@ -33,6 +33,7 @@ void LDAFunctional::setxc(void)
assert(rho != 0);
assert(exc != 0);
assert(vxc1 != 0);
#pragma omp parallel for
for ( int ir = 0; ir < _np; ir++ )
{
xc_unpolarized(rho[ir],exc[ir],vxc1[ir]);
......@@ -48,6 +49,7 @@ void LDAFunctional::setxc(void)
assert(vxc1_dn != 0);
const double fz_prefac = 1.0 / ( cbrt(2.0)*2.0 - 2.0 );
const double dfz_prefac = (4.0/3.0) * fz_prefac;
#pragma omp parallel for
for ( int ir = 0; ir < _np; ir++ )
{
double excir = 0.0;
......
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