can you change *.F files without changing the source files?

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
ilicakme
Posts: 14
Joined: Mon Jun 27, 2005 4:38 pm
Location: University of Bergen

can you change *.F files without changing the source files?

#1 Unread post by ilicakme »

Hi everybody,

In roms 3.0, there is a nice option that you can create your own Project directory and you can create a folder as Functionals and you can put *.h files you need to modify. So, you don't touch original *.h files in ROMS directory.

We were wondering can we do the same thing for *.F files. For instance if we want to change Nonlinear/main3d.F but we don't want to change in ROMS directory just create a folder in our Project directory as Nonlinear and put the file in there. Can we do that, if so what we should put in the build.bash file?
Or is there any other way to do that.

Thanks in advance,
Mehmet
MI

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

#2 Unread post by kate »

The current makefile system searches the directories it was told to search for files with .F extensions. You would have to make sure that the default main3d.F wasn't visible to it and that your new directory was added to the list of directories it is searching - and that that directory has the proper Module.mk for that to work. If I want to hide a source file, I rename it to have a .foo extention, but that's just one way.

If you read up in here or on the wiki about how the makefile works, it should be a trivial exercise to add your directory. But the answer to your question about build.bash is no, it's not there.

Post Reply