Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sébastien Villemot
antik
Commits
8426a05a
Commit
8426a05a
authored
Apr 24, 2015
by
Liam M. Healy
Browse files
Check zero dimension in make-pq-object
parent
004db63d
Changes
1
Show whitespace changes
Inline
Side-by-side
physical-quantities/scalar.lisp
View file @
8426a05a
;; 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