I have a question about designing a simple code using Fortran OOP features. Lets say I want a Class "A" which has method "A1", however, I may have 3 different mplementations of A1. My question is how should I make class A to be able to run all three implementations but I want to choose among them at the compile them and not the run time (Due to code efficiency concerns).
One method is to define three different extensions of A which each has an implementations. Isnt this a dumb approach? how if the number of implementations are so large that I could not do that without making a mess?
The other method might be using sth like template in C++ if Intel has implented this in their compiler yet!.
I do really appreciate your input for me as a rookie programmer.
Thank you very much