Repository navigation
Conversation
The gfortran flags had no optimisation level, so the library was built at -O0. In a PartMC urban-plume run with 10,000 particles this made MOSAIC about 3x slower than with -O2. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Several routines that are called once per bin declared local work arrays dimensioned by nbin_a_max while using only element ibin. gfortran heap-allocates these on every call, which is costly when each PartMC particle is a bin. - ASTEM_flux_soa: size df_gas_o, flux_o, phi_volatile_o as (.., ibin:ibin) - aerosol_phase_state, calculate_kelvin: DpmV, kelvin, volume_a are scalars - MESA_PTC, MESA_convergence_criterion: mass_dry_salt is a scalar No change in results. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Compile with -O2 and avoid per-bin work-array allocation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
compiledirectory from git tracking.cpu_timeas its more general