Skip to content

Commit

Permalink
Update importUI.m
Browse files Browse the repository at this point in the history
fix bugs
  • Loading branch information
ranzhengcode authored Nov 8, 2023
1 parent ade9216 commit 083cb56
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions inst/GUI/importUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,16 @@ function importUI()
% Caculation Mode
flag3d = any(inputData.Pro(1,:));
flag2d = any(inputData.Pro(2,:));
flagboth = flag3d & flag2d;
if flagboth
% {'3D','2D','Both'}
set(VELAS.basepop,'Value',3);
else
if flag3d
flagtp = [num2str(flag3d),num2str(flag2d)];
switch(flagtp)
case '00'
set(VELAS.basepop,'Value',1);
end
if flag2d
case '10'
set(VELAS.basepop,'Value',2);
end
case '01'
set(VELAS.basepop,'Value',3);
case '11'
set(VELAS.basepop,'Value',4);
end

% Structure under Pressure (GPa)
Expand Down

0 comments on commit 083cb56

Please sign in to comment.