program main
    use mod_parameters
    use mod_variables
    use mod_preprocess
    use mod_time_integration
    implicit none

    print*, '#Calling preprocess...'
    call prep
    call write_tidal_potential
    print*, '#Preprocess is done...'

    if(start_simulation==0)then
        call time_integration
    else
        call time_integration_rerun
    end if
    
end program main