Where to put modified source files ?

Mikasa

sky
Member
I have made changes on files in '/cime/src/drivers/mct/shr/' and '/cime/src/share/util/'. Should I put them all in '/SourceMods/src.share/' ?
 

jedwards

CSEG and Liaisons
Staff member
You can put them in the SourceMods directory but my suggestion would be to keep them in the source tree and create a git fork so that your changes are under version control. SourceMods is a mechanism that predates the use of git with cesm.
 

Mikasa

sky
Member
You can put them in the SourceMods directory but my suggestion would be to keep them in the source tree and create a git fork so that your changes are under version control. SourceMods is a mechanism that predates the use of git with cesm.
In the SourceMods directory, which subdirectory should I put them in ? src.drv or src.share ? And I will consider using git later.
 

jedwards

CSEG and Liaisons
Staff member
I think that they would go in src.share but you should confirm by checking the build logs after compiling.
 
Back
Top