Opened 17 years ago

Closed 17 years ago

#40 closed bug (Fixed)

Occurences of MY_APPLICATION

Reported by: csherwood Owned by: arango
Priority: major Milestone: Release ROMS/TOMS 3.1
Component: Nonlinear Version: 3.1
Keywords: Cc:

Description (last modified by arango)

I think MY_APPLICATION should be defined in User/Functionals/ana_m3clima.h, instead of MY_APPLICATION*S*.

Also, should MY_APPLICATION be defined anywhere in ROMS/Functionals/*? I don't think so. It appears in ROMS/Functionals/ana_initial.h and ana_m3clima.h. (I found these with grep -r MY_APPLICATION *). That breaks one approach for running my own application (call it CHRIS), which is to copy User/Functionals/ana_whatever.h into a directory with all of the CHRIS stuff, then place appropriate code inside

#if defined MY_APPLICATION
 ...my code
#endif

I then put #define MY_APPLICATION at the top of chris.h. That seems easier than always adding another test for the case at hand.

Finally, I found this in ROMS_SED trunk... and posted this ticket on the CSTM TRAC system, but it did not look like that TRAC system was being used... where should we post bugs when we find them in the ROMS_SED trunk?

Change History (1)

comment:1 by arango, 17 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

Well, MY_APPLICATION was intended as a dummy segment of code showing how to set-up a particular application. I was not expecting any user to actually use this a CPP option in ROMS. However, your point is well taken and you indeed may use such capability. If this is the case, then there is a typo in ana_m3clima.h and we need to remove this option from ROMS/Functionals. I missed those occurences of MY_APPLICATION in that directory.

You can post the ticket in either TRAC webpage since John, Kate and I get e-mail notification of every ticket that it is posted. However, I prefer to put all bug ticket related to ROMS kernel in https://www.myroms.org/projects/src and leave the other TRAC website https://www.myroms.org/projects/cstm to CSTM related ticket.

At the end it doesn't matter that much were the ticket is posted but how it is resolved.

Note: See TracTickets for help on using tickets.