-
Notifications
You must be signed in to change notification settings - Fork 33
Update Cmake min version and Mathcad build #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
819d932
bafcc7e
004158b
88da926
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -54,39 +54,51 @@ Make the Build for Mathcad Prime (any version above 3.0) | |||||||||||||
|
|
||||||||||||||
| * Go to the top level IF97 directory and make a build directory (something like \build or \buildPrime): | ||||||||||||||
|
|
||||||||||||||
| ```bash | ||||||||||||||
| mkdir buildPrime | ||||||||||||||
| cd buildPrime | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| * Build the makefile using CMake (Note: Mathcad Prime is 64-bit): | ||||||||||||||
|
|
||||||||||||||
| ```cmake | ||||||||||||||
| cmake .. -DIF97_PRIME_MODULE=ON | ||||||||||||||
| -DIF97_PRIME_ROOT="C:/Program Files/PTC/Mathcad Prime 10.0.0.0" | ||||||||||||||
| -G "Visual Studio 17 2022" -A x64 | ||||||||||||||
| -DCMAKE_VERBOSE_MAKEFILE=ON | ||||||||||||||
| -DCMAKE_VERBOSE_MAKEFILE=ON | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| > Insert your version of Mathcad Prime in place of "10.0.0.0". | ||||||||||||||
| > Insert your version of Visual Studio for the -G option. | ||||||||||||||
| > Note that Mathcad Prime is 64-bit and requires the `-A x64` switch on this command. | ||||||||||||||
| > Prior to VS 2017, use something like: `-G "Visual Studio 14 2015 Win64` | ||||||||||||||
| - Insert your version of Mathcad Prime in place of "10.0.0.0" (or omit). | ||||||||||||||
| - Insert your version of Visual Studio for the `-G` option. | ||||||||||||||
| - Note that Mathcad Prime is 64-bit and requires the `-A x64` switch on this command. | ||||||||||||||
| - Prior to VS 2017, use something like: `-G "Visual Studio 14 2015 Win64"`. | ||||||||||||||
| . | ||||||||||||||
|
|
||||||||||||||
| > **NOTE:** | ||||||||||||||
| > Specifying the Mathcad Prime root directory is optional. CMake will attempt to find the most recent version of Mathcad Prime on the system and use that one to link the Mathcad Prime library and header file. If a valid Mathcad Prime installation directory cannot be found, or you want to specify an older version on the system to link to, then supply the ``-DIF97_PRIME_ROOT`` flag as directed above. | ||||||||||||||
|
|
||||||||||||||
| Make the Build for Legacy Mathcad 15 (Discontinued by PTC) | ||||||||||||||
| ---------------------------------------------------------- | ||||||||||||||
|
|
||||||||||||||
| * Go to the top level IF97 directory and make a build directory (something like \build15): | ||||||||||||||
|
|
||||||||||||||
| ```bash | ||||||||||||||
| mkdir build15 | ||||||||||||||
| cd build15 | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| * Build the makefile using CMake (Note: Mathcad 15 is 32-bit):: | ||||||||||||||
|
|
||||||||||||||
| ```cmake | ||||||||||||||
| cmake .. -DIF97_MATHCAD15_MODULE=ON | ||||||||||||||
| -DIF97_MATHCAD15_ROOT="C:/Program Files (x86)/Mathcad/Mathcad 15" | ||||||||||||||
| -G "Visual Studio 17 2022" -A Win32 | ||||||||||||||
| -DCMAKE_VERBOSE_MAKEFILE=ON | ||||||||||||||
|
|
||||||||||||||
| > Insert your version of Visual Studio for the -G option. | ||||||||||||||
| > Legacy Mathcad was 32-bit and requires a 32-bit add-in DLL. | ||||||||||||||
| > Prior to VS2017, use something like `-G "Visual Studio 14 2015` as 32-bit was the default. | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| - Insert your version of Visual Studio for the -G option. | ||||||||||||||
| - Legacy Mathcad was 32-bit and requires a 32-bit add-in DLL. | ||||||||||||||
| - Prior to VS2017, use something like `-G "Visual Studio 14 2015` as 32-bit was the default. | ||||||||||||||
|
Comment on lines
+99
to
+101
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix inconsistent list indentation. Lines 100-101 use 4-space indentation where 1-space is expected, triggering markdownlint MD005. 📐 Proposed fix-
- - Insert your version of Visual Studio for the -G option.
- - Legacy Mathcad was 32-bit and requires a 32-bit add-in DLL.
- - Prior to VS2017, use something like `-G "Visual Studio 14 2015` as 32-bit was the default.
+
+ - Insert your version of Visual Studio for the -G option.
+ - Legacy Mathcad was 32-bit and requires a 32-bit add-in DLL.
+ - Prior to VS2017, use something like `-G "Visual Studio 14 2015` as 32-bit was the default.📝 Committable suggestion
Suggested change
🧰 Tools🪛 LanguageTool[style] ~101-~101: ‘Prior to’ might be wordy. Consider a shorter alternative. (EN_WORDINESS_PREMIUM_PRIOR_TO) 🪛 markdownlint-cli2 (0.22.1)[warning] 100-100: Inconsistent indentation for list items at the same level (MD005, list-indent) [warning] 101-101: Inconsistent indentation for list items at the same level (MD005, list-indent) 🤖 Prompt for AI Agents |
||||||||||||||
|
|
||||||||||||||
| Build the Project | ||||||||||||||
| ----------------- | ||||||||||||||
|
|
@@ -131,4 +143,4 @@ Compiler Flags | |||||||||||||
| ============== | ||||||||||||||
| The Mathcad wrapper code uses the ``REGION3_ITERATE`` flag to provide more accurate (but slightly slower) calculation of density in Region 3 (mostly super-critical), but does **_not_** use the ``IAPWS_UNITS`` flag by default, leaving all input/output values in SI units. | ||||||||||||||
|
|
||||||||||||||
| The `IAPWS_UNITS` flag can be set (uncommented) in the top of the IF97.cpp file to input and output IAPWS units (Pressures in MPa and energy in kJ) for easy comparison with IAPWS release documents. | ||||||||||||||
| The `IAPWS_UNITS` flag can be set (uncommented) in the top of the IF97.cpp file to input and output IAPWS units (Pressures in MPa and energy in kJ) for easy comparison with IAPWS release documents. | ||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.