Skip to content
Snippets Groups Projects
Commit 4958e3e1 authored by Eoin Clerkin's avatar Eoin Clerkin Committed by David Emschermann
Browse files

Modifies media.geo check

Just output the density to the screen for human inspecition.
A misspelling corrected.
parent 63083468
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ for (i = 1; i<=NF; i++)datum[i]=$i; # Loading in a line from media.geo fle to ma
if(datum[2]<0){
content_by="number" # Relative number
print "Containts by numer";
print "Contents by relative number of atoms";
};
datum[2] = (datum[2]>0)? datum[2] : -1*datum[2]; # Making the NCOMP parameter always positive.
......@@ -123,12 +123,13 @@ for (i = 1; i<=NF; i++)datum[i]=$i; # Loading in a line from media.geo fle to ma
printf "Contents by the number of atoms: \n"
for( ele in CHEMISTRY )printf "%s%s", ele, CHEMISTRY[ele];
# ELEMENT_SYMBOL[strtonum(datum[2+i+datum[2]])]
# CHEMISTRY[]
};
# Output the density of the material for human examination
printf "\nDensity of the material is : %s g/cm3", datum[2 + 2*datum[2] + 1];
print " " # Spacing
delete CHEMISTRY;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment