Closed bobmyhill closed 2 years ago
yes apologies.
We have an issue with the current version of MAGEMin
distributed through BinaryBuilder
(I accidentally pushed a version with a bug yesterday). We are trying to get that fixed and preventing such things from happening in the future.
Meanwhile, a temporary fix is by installing an older version of MAGEMin in julia:
julia> ]
pkg> rm MAGEMin_jll
pkg> add MAGEMin_jll@1.0.1
julia> using MAGEMin_jll
julia> julia> run(`$(MAGEMin())`)
Running MAGEMin 1.0.1 on 1 cores {
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
VOL_SYS +1.582647
RHO_SYS +3253.910274
MASS_RES +0.000010
Rank : 0
Point : 0
Temperature : 1100.0000 [C]
Pressure : 12.00 [kbar]
SOLUTION: [G = -825.337] (37 iterations, 533.84 ms)
[-1011.909244,-1829.091667,-819.265695,-695.468293,-412.942264,-971.879593,-876.528204,-1073.651398,-276.626122,-1380.314700,]
opx 0.23184
cpx 0.15210
spn 0.01395
ol 0.60211
Point 0
__________________________________
MAGEMin comp time: +764.156000 ms }
Once that works, you will have to manually change the file environmental_variables.m
, where path_bin
and path_dylib
likely need to be updated:
julia> path_bin = MAGEMin_jll.__init__()
"/Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia:/Users/kausb/.julia/artifacts/1de252c3f8c1eeb3c18189b1a27222e8dc806171/lib:/Users/kausb/.julia/artifacts/3de79395eef7694a5f90e9feb05eb575a59e69ae/lib:/Users/kausb/.julia/artifacts/c75423ee5adba82a5653ec3bee4687a1ac9b49d7/lib:/Users/kausb/.julia/artifacts/94a7ccc74e461921cd83f8373adb592647d3cf53/lib:/Applications/Julia-1.7.app/Contents/Resources/julia/bin/../lib/julia:/Applications/Julia-1.7.app/Contents/Resources/julia/bin/../lib"
julia> path_dylib = MAGEMin_jll.__init__()
"/Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia:/Users/kausb/.julia/artifacts/1de252c3f8c1eeb3c18189b1a27222e8dc806171/lib:/Users/kausb/.julia/artifacts/3de79395eef7694a5f90e9feb05eb575a59e69ae/lib:/Users/kausb/.julia/artifacts/c75423ee5adba82a5653ec3bee4687a1ac9b49d7/lib:/Users/kausb/.julia/artifacts/94a7ccc74e461921cd83f8373adb592647d3cf53/lib:/Applications/Julia-1.7.app/Contents/Resources/julia/bin/../lib/julia:/Applications/Julia-1.7.app/Contents/Resources/julia/bin/../lib"
Thanks for the quick reply and for making the fixes. I tried your workaround (above) and I also tried running your new version 1.0.6.
Both of these versions successfully run the single test point from run($(MAGEMin()))
or from the end of the setup GUI. However, when trying to compute the standard KLB-1 section from MATLAB I get a different error with the following message:
Error using sscanf
First argument must be a text scalar.
Error in ReadData_MAGEMin (line 34)
A = sscanf(line,'%f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f');
Error in PerformMAGEMin_Simulation (line 148)
PhaseData_in1 = ReadData_MAGEMin(1:2,[],Computation.MinPhaseFraction);
Error in ComputePhaseDiagrams_AMR (line 124)
[PhaseData, TP_vec, FailedSimulations, CancelComputation] = PerformMAGEMin_Simulation(PhaseData, newPoints, TP_vec, VerboseLevel, Chemistry, dlg, ComputeAllPoints, UseGammaEstimation, Computation);
Error in PlotPseudosection/StartNewComputation (line 1423)
[PseudoSectionData, CancelComputation] = ComputePhaseDiagrams_AMR(PseudoSectionData, DisplayPlots);
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 427)
Error while evaluating Button PrivateButtonPushedFcn.
Yes, this is because you need to restart the GUI after you installed MAGEMin for the first time. I now updated the GUI to show a message that tells you this after installation (together with some more fixes). You can get it if you download the repo using the green button.
thanks for your interest & checking!
Trying to install MAGEMin for use in MatLab on a MacBook Pro (Apple Silicon M1). Julia installs fine from the website. Failure on Step 2/3 of the installation. Error message below.