#! /bin/csh -f

echo ../../SmoothShape/SOLgnu/SmoothShape \
  -inFile torus-4-0003-f50s50-i0100 \
  -outFile torus-4-ss \
  -flatten 100 -spread 00 \
  -normalize \
  -showEvery 10 \
  -energy 1.0000 Curv \
  -energy 1.0000 PArea \
  -energy 1.0000 Corner \
  -energy 1.0000 Excen \
  -energy 1.0000 Poten \
  -energy 1.0000 Elect

echo RefineTriang \
  -inFile torus-4-ss-i0100 \
  -outFile torus-4-ss-r

echo RefineTriang \
  -inFile torus-4-ss-i0100 \
  -fixOriginal \
  -outFile torus-4-ss-rf

echo ../../SmoothShape/SOLgnu/SmoothShape \
  -inFile torus-4-ss-rf \
  -outFile torus-4-ss-rf-s \
  -flatten 100 -spread 00 \
  -normalize \
  -showEvery 10 \
  -energy 1.0000 Curv \
  -energy 1.0000 PArea \
  -energy 1.0000 Corner \
  -energy 1.0000 Excen \
  -energy 1.0000 Poten \
  -energy 1.0000 Elect

echo ../../SmoothShape/SOLgnu/SmoothShape \
  -inFile torus-4-ss-r \
  -outFile torus-4-ss-r-s \
  -flatten 100 -spread 00 \
  -normalize \
  -showEvery 10 \
  -energy 1.0000 Curv \
  -energy 1.0000 PArea \
  -energy 1.0000 Corner \
  -energy 1.0000 Excen \
  -energy 1.0000 Poten \
  -energy 1.0000 Elect

../../SmoothShape/SOLgnu/SmoothShape \
  -inFile torus-4-ss-r \
  -outFile torus-4-ss-r-t \
  -flatten 50 -spread 100 \
  -normalize \
  -showEvery 10 \
  -energy 1.0000 Curv \
  -energy 1.0000 PArea \
  -energy 1.0000 Corner \
  -energy 1.0000 Excen \
  -energy 1.0000 Poten \
  -energy 1.0000 Elect
