SHUSCT / SHUBYD_GMCORE_ASC24

MIT License
0 stars 0 forks source link

Optimized: Expand loops in dynamics/adv/ffsl_mod.F90loop #34

Closed shepherdmrf closed 5 months ago

shepherdmrf commented 5 months ago

Written in #24

shepherdmrf commented 5 months ago

@BeverlyCrl

BeverlyCrl commented 5 months ago

I'm not very sure if change if-else structure will optimize the whole function.Because in the case that we need more else instead of if,I reckon this structure might takes more time. It depends on whether the program will run more into the if branch or else branch. Maybe you can try to test just expand loops and compare the time spend of them. Might new if-else is work.

shepherdmrf commented 5 months ago

It seems difficult to expand this code with a simple loop expansion, so I may keep it as it is and change it if I have some new ideas.