Skip to content

CableUserGuide_CBL3_Introduction_CBL3_Developers_Simple

Tammas Loughran edited this page May 18, 2022 · 6 revisions

Workflow - simple example

In this very simple example we have identified a parameter in casadimension that is declared but never used.

1. raise a ticket describing the issue.

https://trac.nci.org.au/trac/cable/ticket/302#ticket

In this example, we make use of the following environment variables for brevity.

 echo $SVN_CABLE
https://trac.nci.org.au/svn/cable

Note: This is a standard location

echo $SVN_CABLE_Tickets
https://trac.nci.org.au/svn/cable/branches/Users/jxs599/CABLE/Tickets/2021

Note: You can choose whatever you like here for the path in the repository.

2. Create a branch from the trunk (In this example 302).

svn copy $SVN_CABLE/trunk $SVN_CABLE_Tickets/302

Note: You can choose whatever you like here for the branch name.

3. Checkout this branch

svn checkout $SVN_CABLE_Tickets/302

4. Get the branch URL and add that to your ticket

cd 302/
svn info

Copy the line at URL: In this example

https://trac.nci.org.au/svn/cable/branches/Users/jxs599/CABLE/Tickets/2021/302

Open your ticket at: https://trac.nci.org.au/trac/cable/ticket/302#ticket In the "Add comment" box, add:

Branch @
https://trac.nci.org.au/svn/cable/branches/Users/jxs599/CABLE/Tickets/2021/302

5. Make the required modifications

In this example (using the vi editor)

 vi science/casa-cnp/casa_dimension.F90

You can see these changes with svn diff

svn diff
Index: science/casa-cnp/casa_dimension.F90
===================================================================
--- science/casa-cnp/casa_dimension.F90	(revision 8373)
+++ science/casa-cnp/casa_dimension.F90	(working copy)
@@ -39,7 +39,6 @@
   INTEGER, PARAMETER :: mt=36500           ! integration time step
-  INTEGER, PARAMETER :: mpftmax=2          ! max. PFT/cell
   INTEGER, PARAMETER :: mplant = 3         ! plant pools

6. Commit these changes to your branch

svn commit
Sending        science/casa-cnp/casa_dimension.F90
Transmitting file data .done
Committing transaction...
Committed revision 8374.

7. Submit your ticket

Email [email protected] Include in the subject CABLE Ticket ### submission

For the moment, until a more rigorous system is implemented, we'll be in contact and take it from there.

Clone this wiki locally