Skip to content

Commit

Permalink
use MOLCAS_MEM and OMP_NUM_THREADS env variables in Molcas interface
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanoff committed Oct 22, 2019
1 parent ec06ff5 commit fc7f7c4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions molcas/block_calldmrg.C
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,19 @@ void block_calldmrg (
}

// fcon << "outputlevel 2" << endl;
char* pMem;
pMem = getenv ("MOLCAS_MEM");
if (pMem!=NULL)
fcon << "memory " << pMem << " m" << endl;
else
fcon << "memory 2000 m" << endl;

char* pONT;
pONT = getenv ("OMP_NUM_THREADS");
if (pONT!=NULL)
fcon << "num_thrds " << pONT << endl;
else
fcon << "num_thrds 1" << endl;

fcon.close();
}
Expand Down

0 comments on commit fc7f7c4

Please sign in to comment.