Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sébastien Villemot
antik
Commits
38acd6ba
Commit
38acd6ba
authored
Apr 24, 2015
by
Liam M. Healy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check zero dimension in make-pq-object
parent
f9265eee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
physical-quantities/scalar.lisp
physical-quantities/scalar.lisp
+3
-2
No files found.
physical-quantities/scalar.lisp
View file @
38acd6ba
;; Physical dimension quantity with a magnitude that is a scalar
;; Liam Healy 2011-01-01 12:05:37EST grid.lisp
;; Time-stamp: <201
3
-0
3
-2
3
1
8:55:13
EDT scalar.lisp>
;; Time-stamp: <201
5
-0
4
-2
4
1
7:01:41
EDT scalar.lisp>
;; Copyright 2011, 2013 Liam M. Healy
;; Distributed under the terms of the GNU General Public License
...
...
@@ -70,7 +70,8 @@
t
)))
; only check vectors for non-scalar units
(
dimel
)
"~a is not a dimel"
dimel
)
(
if
(
equal
dimel
(
dimension
'dimensionless
))
(
if
(
or
(
and
*zero-is-dimensionless*
(
zerop
mag
))
(
equal
dimel
(
dimension
'dimensionless
)))
mag
(
make-instance
'physical-quantity
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment