Skip to content

Module files are simply too long #12

@sbryngelson

Description

@sbryngelson

Our module files are simply too long, no matter how you think about the code abstractions.

I suggest that modules should not be longer than 1000 lines, though much shorter or somewhat longer could be appropriate in specific cases. How things should be broken up exactly should be deliberated before starting the refactor.

Also, this issue should probably not be addressed until the GPU-3D-unmanaged branch is merged to master.

Here are the current line counts in the GPU-3D-unmanaged branch:

   36414 total
    3866 ./simulation_code/m_riemann_solvers.f90
    3827 ./simulation_code/m_rhs.f90
    2433 ./pre_process_code/m_initial_condition.f90
    2396 ./simulation_code/m_data_output.f90
    2099 ./pre_process_code/m_start_up.f90
    1779 ./post_process_code/m_mpi_proxy.f90
    1712 ./simulation_code/m_cbc.f90
    1614 ./simulation_code/m_weno.f90
    1547 ./simulation_code/m_mpi_proxy.f90
    1421 ./simulation_code/m_derived_variables.f90
    1137 ./post_process_code/m_data_output.f90
    1134 ./simulation_code/m_start_up.f90
    1086 ./post_process_code/m_data_input.f90
    1047 ./simulation_code/m_global_parameters.f90
     897 ./post_process_code/m_global_parameters.f90
     876 ./pre_process_code/m_global_parameters.f90
     826 ./pre_process_code/m_mpi_proxy.f90
     774 ./post_process_code/m_derived_variables.f90
     689 ./simulation_code/m_variables_conversion.f90
     576 ./post_process_code/m_start_up.f90
     514 ./post_process_code/p_main.f90
     491 ./simulation_code/m_time_steppers.f90
     484 ./simulation_code/m_bubbles.f90
     456 ./pre_process_code/m_variables_conversion.f90
     405 ./post_process_code/m_variables_conversion.f90
     400 ./pre_process_code/m_data_output.f90
     398 ./simulation_code/m_qbmm.f90
     324 ./pre_process_code/m_grid.f90
     301 ./master_scripts/m_silo_proxy.f90
     216 ./master_scripts/m_mpi_proxy.f90
     184 ./simulation_code/p_main.f90
     131 ./pre_process_code/m_derived_types.f90
     125 ./pre_process_code/p_main.f90
      96 ./simulation_code/m_derived_types.f90
      63 ./post_process_code/m_derived_types.f90
      30 ./simulation_code/m_compile_specific.f90
      30 ./pre_process_code/m_compile_specific.f90
      30 ./post_process_code/m_compile_specific.f90

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions