problems updating my source code

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
User avatar
mafeluna
Posts: 4
Joined: Tue Feb 12, 2008 4:25 pm
Location: Institude of Marine and Coastal Science, Rutgers University

problems updating my source code

#1 Unread post by mafeluna »

Hi all,

a while ago I made some changes to the ROMS code and it compiled and run without problems. Then I tried to update the ROMS version with 'svn update'. When I did this, the files that I modified were not updated and none conflict was reported. As a result of this the code is not compiling. According with wikiroms (https://www.myroms.org/wiki/index.php/Subversion), svn should report conflicts and give me the option to merge them by hand.

How can I update my code while keeping my changes?

Thanks in advance.

Maria

User avatar
arango
Site Admin
Posts: 1350
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: problems updating my source code

#2 Unread post by arango »

You need to resolve the conflicts. There are many ways how to do that. I usually compare the affected files, said *.F and *.F.mine using any difference tool. I regularly use xemacs compare two files option and resolve the issues.

Check the :arrow: wiki for more information about conflicts.

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

Re: problems updating my source code

#3 Unread post by m.hadfield »

Are you keeping your modifications in a working copy? This is not a good idea as they can be wiped out at any time, specifically when files in the repository are moved. You really want your modifications to be under version control, separate from the master source. One way of doing this was discussed by Kate Hedstrom here

https://www.myroms.org/blog/?p=166

with a recent follow-up here

https://www.myroms.org/blog/?p=168

There are other ways.

Post Reply