Sha256: bb49eb7c6dcaee3eee0618f7f593d93eca5512952ff5bd877bc21b37d1e1be42

Contents?: true

Size: 614 Bytes

Versions: 3

Compression:

Stored size: 614 Bytes

Contents

#! /usr/bin/env ruby
# coding: utf-8

require "rubygems"
gem "comana"
require "comana/computationmanager.rb"

#gem "vasputils"
require "vasputils/vaspdir.rb"
require "vasputils/vaspgeomopt.rb"

require "optparse"

## option analysis
OPTIONS = {}
op = OptionParser.new
op.on("-g"    , "--geom-opt", "Geometry optimization"){OPTIONS[:g] = true}
op.parse!(ARGV)

dir = ARGV[0] || "."

if OPTIONS[:g]
  calc_dir = VaspGeomOpt.new(dir)
else
  calc_dir = VaspDir.new(dir)
end

#pp calc_dir.class.ancestors

begin
  calc_dir.start
rescue ComputationManager::AlreadyStartedError
  puts "Already started. Exit."
  exit
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vasputils-0.0.8 bin/runvasp
vasputils-0.0.7 bin/runvasp
vasputils-0.0.6 bin/runvasp