~ubuntu-branches/ubuntu/trusty/nwchem/trusty-proposed

« back to all changes in this revision

Viewing changes to src/config/sngl2dbl.pl

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
# $Id: sngl2dbl.pl 21538 2011-11-16 22:56:50Z d3p852 $
 
2
# $Id: sngl2dbl.pl 23137 2012-11-21 18:53:47Z d3y133 $
3
3
#
4
4
#
5
5
# perl script to do transliteration from "single" values to "double" values
21
21
#           P.O. Box 999
22
22
#           Richland, WA 99352-0999
23
23
#
 
24
sub copy_case() {   # Take case from "from" and apply it to "to" and return that new string
 
25
    my ($from, $to) = @_;
 
26
    my ($lf, $lt) = map length, @_;
 
27
    if ($lt < $lf) { $from = substr $from, 0, $lt }
 
28
    else { $from .= substr $to, $lf }
 
29
    return uc $to | ($from ^ uc $from);
 
30
}
 
31
 
24
32
$debug = 0;
25
33
@from = ();
26
34
@to   = ();
84
92
            {
85
93
                if (/$from[$compare]/i){
86
94
 
 
95
                    $froom = index(uc $_,uc $from[$compare]); # Find where the string starts ie the "from"
 
96
                    $toot = &copy_case(substr($_,$froom),$to[$compare]) ; # Generate a "to" that matches the case
87
97
                    if (/^[ ]{5}[^\s]/) {
88
 
                        s/([ ]{5}.)$from[$compare](\W{1})/$1$to[$compare]$2/gi ;
 
98
                        s/([ ]{5}.)$from[$compare](\W{1})/$1${toot}$2/gi ;
89
99
                    }
90
100
                    if (/^[ \d]/){
91
 
                        s/(\W{1})$from[$compare](\W{1})/$1$to[$compare]$2/gi ;
 
101
                        s/(\W{1})$from[$compare](\W{1})/$1${toot}$2/gi ;
92
102
                    }
93
103
                }
94
104
            }