Skip to content

Commit

Permalink
Merge pull request #5 from stasoid/master
Browse files Browse the repository at this point in the history
Fix fish/starfish geometry
  • Loading branch information
cwesson authored Jan 3, 2023
2 parents bbf8c88 + c5005a8 commit f94b97f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Funge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,15 @@ int fungemain(int argc, char **argv, char **envp){
std::cerr << "Unsupported standard: " << arg << std::endl;
return EINVAL;
}
if(funge_config.standard == Funge::FUNGE_93
|| funge_config.standard == Funge::FUNGE_FISH
|| funge_config.standard == Funge::FUNGE_STARFISH){
if(funge_config.standard == Funge::FUNGE_93){
funge_config.topo = Funge::TOPO_TORUS;
funge_config.strings = Funge::STRING_MULTISPACE;
funge_config.cells = Funge::CELL_CHAR;
}else if(funge_config.standard == Funge::FUNGE_FISH
|| funge_config.standard == Funge::FUNGE_STARFISH){
funge_config.topo = Funge::TOPO_LAHEY;
funge_config.strings = Funge::STRING_MULTISPACE;
funge_config.cells = Funge::CELL_INT;
}else{
funge_config.topo = TOPO_LAHEY;
funge_config.strings = STRING_SGML;
Expand Down

0 comments on commit f94b97f

Please sign in to comment.