behavior of --with-config-file=foo.bar  [SOLVED]

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
User avatar
jzwanzig
Posts: 504
Joined: Mon Aug 17, 2009 9:25 am

behavior of --with-config-file=foo.bar

Post by jzwanzig » Mon Jun 14, 2010 1:04 am

Hi, currently the command ../configure --with-config-file=foo.bar runs, even if "foo.bar" doesn't exist. That is, configure churns along with its own defaults and guesses. But if the user (me for example) wants a specific config file and mistypes the name or in some other way gives a file name that doesn't exist, I think the configure system should just stop immediately with a warning that the requested config file was not found. What does everyone else think about this proposal?

Joe
Josef W. Zwanziger
Professor, Department of Chemistry
Canada Research Chair in NMR Studies of Materials
Dalhousie University
Halifax, NS B3H 4J3 Canada
jzwanzig@gmail.com

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

Re: behavior of --with-config-file=foo.bar

Post by mverstra » Mon Jun 14, 2010 9:07 am

Great idea, happened to me countless times. One major progress in 6.0 was that it now complains about relative paths that it is unable to parse (instead of skipping the file like it used to). This means your check should be possible if Yann has time to fiddle.

Cheers

Matthieu
Matthieu Verstraete
University of Liege, Belgium

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: behavior of --with-config-file=foo.bar

Post by pouillon » Mon Jun 14, 2010 1:38 pm

Up to now, the choice was to ignore the file if it didn't exist, because this was what I had been requested to do. If you change your mind, I will adapt.

Let's thus say that, if there is no complaint about increasing the severity to an error by the end of the week, I'll just do it.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

User avatar
jzwanzig
Posts: 504
Joined: Mon Aug 17, 2009 9:25 am

Re: behavior of --with-config-file=foo.bar

Post by jzwanzig » Mon Jun 14, 2010 4:18 pm

Thanks, Yann, I think it would be better for the system to stop if it can't find the requested file.

Joe
Josef W. Zwanziger
Professor, Department of Chemistry
Canada Research Chair in NMR Studies of Materials
Dalhousie University
Halifax, NS B3H 4J3 Canada
jzwanzig@gmail.com

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: behavior of --with-config-file=foo.bar  [SOLVED]

Post by pouillon » Tue Jun 22, 2010 10:30 am

Will be available in Abinit 6.2.0.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

Locked