Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
teqp_fork_old
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Sven Michael Pohl
teqp_fork_old
Commits
ee71b1d7
Commit
ee71b1d7
authored
3 years ago
by
Ian Bell
Browse files
Options
Downloads
Patches
Plain Diff
Repair the fugacity coefficient testing script
parent
7fd3b050
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/time_fugcoeff.cpp
+9
-14
9 additions, 14 deletions
src/time_fugcoeff.cpp
with
9 additions
and
14 deletions
src/time_fugcoeff.cpp
+
9
−
14
View file @
ee71b1d7
...
@@ -35,18 +35,6 @@ int main()
...
@@ -35,18 +35,6 @@ int main()
SETPATHdll
(
hpath
,
255
);
SETPATHdll
(
hpath
,
255
);
}
}
{
int
ierr
=
0
,
nc
=
1
;
char
herr
[
256
],
hfld
[
10001
]
=
"PROPANE"
,
hhmx
[
256
]
=
"HMX.BNC"
,
href
[
4
]
=
"DEF"
;
#if defined(USE_TEQP_HMX)
strcpy
(
hhmx
,
(
std
::
string
(
"teqpHMX.BNC"
)
+
std
::
string
(
256
-
10
,
' '
)).
c_str
());
#endif
SETUPdll
(
nc
,
hfld
,
hhmx
,
href
,
ierr
,
herr
,
10000
,
255
,
3
,
255
);
if
(
ierr
!=
0
)
{
printf
(
"This ierr: %d herr: %s
\n
"
,
ierr
,
herr
);
return
EXIT_FAILURE
;
}
}
// Try to disable caching in REFPROP
// Try to disable caching in REFPROP
{
{
int
ierr
=
0
;
char
herr
[
256
];
int
ierr
=
0
;
char
herr
[
256
];
...
@@ -90,10 +78,17 @@ int main()
...
@@ -90,10 +78,17 @@ int main()
name
+=
"*"
+
fluid_set
[
j
];
name
+=
"*"
+
fluid_set
[
j
];
}
}
int
ierr
=
0
,
nc
=
Ncomp
;
int
ierr
=
0
,
nc
=
Ncomp
;
char
herr
[
256
],
hfld
[
10001
]
=
" "
,
hhmx
[
256
]
=
"HMX.BNC"
,
href
[
4
]
=
"DEF"
;
char
herr
[
256
]
=
" "
,
hfld
[
10001
]
=
" "
,
hhmx
[
256
]
=
"HMX.BNC"
,
href
[
4
]
=
"DEF"
;
#if defined(USE_TEQP_HMX)
std
::
string
rhs
=
std
::
string
(
"./teqpHMX.BNC"
)
+
"
\0
"
;
strncpy
(
hhmx
,
rhs
.
c_str
(),
rhs
.
size
());
#endif
strcpy
(
hfld
,
(
name
+
"
\0
"
).
c_str
());
strcpy
(
hfld
,
(
name
+
"
\0
"
).
c_str
());
SETUPdll
(
nc
,
hfld
,
hhmx
,
href
,
ierr
,
herr
,
10000
,
255
,
3
,
255
);
SETUPdll
(
nc
,
hfld
,
hhmx
,
href
,
ierr
,
herr
,
10000
,
255
,
3
,
255
);
if
(
ierr
!=
0
)
printf
(
"This ierr: %d herr: %s
\n
"
,
ierr
,
herr
);
if
(
ierr
!=
0
)
{
printf
(
"This ierr: %d herr: %s
\n
"
,
ierr
,
herr
);
return
nlohmann
::
json
{
{
"err"
,
herr
}
};
}
}
}
std
::
valarray
<
double
>
z
(
20
);
z
=
0.0
;
z
[
std
::
slice
(
0
,
Ncomp
,
1
)]
=
1.0
/
Ncomp
;
std
::
valarray
<
double
>
z
(
20
);
z
=
0.0
;
z
[
std
::
slice
(
0
,
Ncomp
,
1
)]
=
1.0
/
Ncomp
;
std
::
valarray
<
double
>
u
(
20
);
u
=
0.0
;
std
::
valarray
<
double
>
u
(
20
);
u
=
0.0
;
...
...
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