Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot_geometry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dario Ramirez
cbmroot_geometry
Commits
4958e3e1
Commit
4958e3e1
authored
2 years ago
by
Eoin Clerkin
Committed by
David Emschermann
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Modifies media.geo check
Just output the density to the screen for human inspecition. A misspelling corrected.
parent
63083468
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci_scripts/static_check.awk
+4
-3
4 additions, 3 deletions
ci_scripts/static_check.awk
with
4 additions
and
3 deletions
ci_scripts/static_check.awk
+
4
−
3
View file @
4958e3e1
...
...
@@ -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
"Cont
ai
nts by numer"
;
print
"Cont
e
nts by
relative
num
b
er
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment