Sha256: c5919cc90c36ab25cb24f355ba684775f57b227e55bab8d5aaf7af2b3812d692

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

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


require "rubygems"
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.on("-b val", "--bak=val", "descriptionB"){|v| OPTIONS[:bak] = v}
op.parse!(ARGV)


dir = ARGV[0] || "."

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

#pp calc_dir

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vasputils-0.0.4 bin/runvasp