- 25 Apr, 2015 1 commit
-
-
Liam M. Healy authored
This reverts commit 38acd6ba because it was committed to master instead of to multiple-systems.
-
- 24 Apr, 2015 1 commit
-
-
Liam M. Healy authored
-
- 23 Mar, 2013 1 commit
-
-
Liam M. Healy authored
The specification of the system-of-units is through an nf-option, and no longer passed as arguments to functions. Systems of units (with or without augmented units) are made via make-sysunits or define-system-of-units, set-default-system-of-units that call it. This does not compile.
-
- 08 Oct, 2011 1 commit
-
-
Liam M. Healy authored
Addition and subtraction on pq grid makes a result with consistent scalar-dimension and dimel slots, thanks to a second return value from dimel-or-not and therefore equal-dimension. Also, a more refined check on make-pq-object if #+debug holds, so that trying to make a pq with a scalar dimel and scalar-dimension nil will give an (incorrectly labeled) error.
-
- 19 Aug, 2011 1 commit
-
-
Liam M. Healy authored
CCL is fussier about the type definitions given for slots, so redefine the :dimension slot for physical-quantity to be correct, and not just 'list. Improved debugging check for make-pq-object will now check a vector with non-scalar units.
-
- 04 Aug, 2011 1 commit
-
-
Liam M. Healy authored
-
- 05 Mar, 2011 1 commit
-
-
Liam M. Healy authored
Make a physical quantity out of an array with elements that are already pq; in this case, #'pqval is applied to the arguments in the stated system of units, and there is no check on consistency of physical dimension. Export 'jd-table.
-
- 01 Mar, 2011 1 commit
-
-
Liam M. Healy authored
-
- 26 Feb, 2011 1 commit
-
-
Liam M. Healy authored
-
- 12 Feb, 2011 1 commit
-
-
Liam M. Healy authored
In order to handle 0.0 (dimensionless) in grids of pqs, find same-units by reducing over #'equal-dimension in make-grid-data (eql 'physical-quantity), instead of map-pq, and add methods for numbers to #'pq-magnitude and #'pq-dimension.
-
- 06 Feb, 2011 1 commit
-
-
Liam M. Healy authored
-
- 30 Jan, 2011 1 commit
-
-
Liam M. Healy authored
The function coerce-value won't try to coerce non-numbers, so that physical quantities provided as values are passed untouched. This permits concatenate-grids with a designated non-T element-type to work, so a test for a foreign-array pq grid has been added, and passes. GRID-ARRAY-UNITS: 5 assertions passed, 0 failed. GRID-SCALAR-UNITS: 9 assertions passed, 0 failed. NUMBERS: 38 assertions passed, 0 failed. UNITS: 9 assertions passed, 0 failed. TOTAL: 61 assertions passed, 0 failed, 0 execution errors.
-
- 28 Jan, 2011 1 commit
-
-
Liam M. Healy authored
The creation form for lists was incorrect; it should be quoted in the defmethod for lists and not quoted in the defmethod for physical-quantity (for pq-dimension). This caused files with #_ in them to fail to load, even though they were compilable. Add #+debug conditionalizations to print-ojbect PQs unreadably in all cases (with magnitude) and to make sure dimels pass dimelp on input to make-pq-object.
-
- 24 Jan, 2011 2 commits
-
-
Liam M. Healy authored
Modify check-dimension to parse units; make-pq-object should not make a physical-quantities around dimensionless things.
-
Liam M. Healy authored
Physical quantities for grids, where units are different for different elements can be defined with make-pq, with either a list or array units. Functions gref and gref* work for pq grids.
-
- 23 Jan, 2011 1 commit
-
-
Liam M. Healy authored
Use make-pq-object instead of make-pq-dimel, include the package name in grid:gridp calls. Change initarg to scalar-dimension for consistency. Change check-type to assert so that it doesn't try to setf pq-magnitude.
-
- 18 Jan, 2011 1 commit
-
-
Liam M. Healy authored
Start two new files, physical-quantities/grid.lisp and physical-quantities/scalar.lisp to handle making physical quantities. Preliminary forms are written but they have not been compiled or tested.
-