1 #include <../../nmodlconf.h>
13 struct unit ux1, ux2, ur1, ur2, uflux;
17 if (
type->itemsubtype == REACT1) {
21 if (
type->itemsubtype == REACT1) {
41 "REACTION quantity units for %s is: %s\n",
45 Fprintf(stderr,
"but the quantity units of the first term is: %s\n",
unit_str());
46 diag(
"Inconsistent material quantity units\n",
"Need a correct COMPARTMENT statement");
55 if (
type->itemsubtype == REACT1 ||
type->itemsubtype ==
'-') {
66 if (
type->itemsubtype == REACT1) {
77 if (
type->itemsubtype == LT) {
83 diag(
"Inconsistent flux units", (
char*) 0);
110 Fprintf(stderr,
"But the users %s rate units are: %s\n", s,
Unit_str(up));
111 diag(
"inconsistent reaction units", (
char*) 0);
136 diag(
SYM(
q)->
name,
"not declared in previous COMPARTMENT");
142 ": relevant area * diffusion constant must\n be micron2 micron2/ms (1-21 m4/s)");
149 ": With LONGDITUDINAL_DIFFUSION the compartment \
150 volume\nmust be measured in micron3/micron (1-12 m2)");
static void set_flux_units(unit *)
void unit_compartlist(Item *q)
static void react_unit_err(char *, unit *)
void kinunits(Item *type, int pass)
void consreact_push(Item *q)
void unit_ldifuslist(Item *q, int flag)
#define ITERATE(itm, lst)
void freelist(List **plist)
char * stralloc(char *buf, char *rel)
char * Unit_str(unit *up)
void ucopypop(struct unit *)
void ucopypush(struct unit *)