This repository was archived by the owner on Aug 28, 2024. It is now read-only.
  
  
  - 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
  
          Turned the swiftest_driver into a subroutine that is now called by a …
        
    …simple main program called main.f90. This is so that I can eventually convert the driver executable into a library function called directly inside Python using f2py
- Loading branch information
 
            MintoDA1
    
  authored and
  MintoDA1
  committed
  Aug 4, 2023 
        
          
    
    
    
  
 
        
      
    
      
        1 parent
          
          2b3d7c0
      
      commit f98f9ae
    
  
      Showing
      4 changed files
      with
      192 additions
      and
      148 deletions.
    
  
  There are no files selected for viewing
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| !! Copyright 2023 - David Minton | ||
| !! This file is part of Swiftest. | ||
| !! Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License | ||
| !! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
| !! Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty | ||
| !! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
| !! You should have received a copy of the GNU General Public License along with Swiftest. | ||
| !! If not, see: https://www.gnu.org/licenses. | ||
| 
     | 
||
| program main | ||
| !! author: David A. Minton | ||
| !! | ||
| !! This is used as a wrapper for the swiftest_driver subroutine so that the driver can be used as either | ||
| !! a function call or a standalone executable program. | ||
| use swiftest | ||
| implicit none | ||
| 
     | 
||
| character(len=:), allocatable :: integrator !! Integrator type code (see globals for symbolic names) | ||
| character(len=:), allocatable :: param_file_name !! Name of the file containing user-defined parameters | ||
| character(len=:), allocatable :: display_style !! Style of the output display {"STANDARD", "COMPACT", "PROGRESS"}). Default is "STANDARD" | ||
| 
     | 
||
| ! Read in command line arguments | ||
| call swiftest_io_get_args(integrator, param_file_name, display_style) | ||
| 
     | 
||
| ! Execute the driver | ||
| call swiftest_driver(integrator, param_file_name, display_style) | ||
| 
     | 
||
| end program main | 
  
    
      This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              
      
      Oops, something went wrong.