option in source files

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
Christian_L
Posts: 4
Joined: Tue Feb 09, 2010 11:31 pm

option in source files

Post by Christian_L » Fri Feb 12, 2010 7:49 pm

There is an option in some source files of the 57_iovars directory. The comments say
!! option : if 0 , no test of available memory
!! if 1 , the routine tries to allocate the estimated memory, for testing
!! purposes, and if a failure occurs, the routine stops.
!! if 2 , like 1, but before stopping, the routine will provide
!! an estimation of the available memory.

How do I change this? It is not an input variable like the others in the list.

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: option in source files

Post by mverstra » Fri Feb 12, 2010 9:51 pm

The "option" is just the name of the variable fed to the subroutine, called differently in different cases. See the callin routines (under PARENTS in the header) for the ways it is used now. If you know what you are doing, you can probably change the values in the callers.

Matthieu
Matthieu Verstraete
University of Liege, Belgium

Locked