You are here

Difference of model running speed by 'w2_cvf.exe' and 'w2_generic.exe' in CE-QUAL-W2, version 3.5

Hi all, I am running CE-QUAL-W2 model for water quality simulation in my study area. In the process, I have a simple question. That is the difference of model running speed between execution of 'w2_cvf.exe' and 'w2_generic.exe'. When I execute the model, running speed by w2_cvf is 6 times faster than w2_generic. Is there any method to improve running speed by 'w2_generic.exe'? Actually, I want to execute my model by 'w2_generic.exe'. Thank you for your consideration. Sincerely yours, Kyung Hwa Cho
Forums: 

Hi Kyung, Running speed differences for generic code is partially a function of the compiler and compiler switches you are using. If your w2_cvf.exe is running 6 times faster, I'd look into trying to optimize the compiling of the generic code using optimizing switches. chris

Hi Chris, Thank you for comments. I have a additional question to your comments. I am using the Compaq Visual Fortran Professional Edition 6.6.0 to compile W2 source code. In your comments, 'optimization of compiling' means 1)to modify source code? or 2)to change compiler(using other program)? And also, could you explain meaning about optimizing switches? I'm sorry to bother you. I'm looking forward to your response. Sincerely yours, Kyung Hwa Cho

Hi, I'm afraid I don't know a whole lot about compilers and it's been a few years since I used CVF, but there are compiling options that take longer for the source code to compile but the executable will run faster. I don't think you'll have to alter the source code. Typical optimization switches include '-O', '-O1', '-O2', or 'O3' (-O3 is what is entered on the command line, with the CVF windows interface you'll have to find where to select these options). Make sure these options are the same when you're compiling the generic and CVF codes. chris

Hi Cris, Thank you very much. Finally, I did it. When I chose compiling option, 'O3', running time of generic code was improved. Have a nice day. Kyung