<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hello there</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I am working with a package (STREAMICE) which, depending on options, makes use of a
<a href="https://github.com/MITgcm/MITgcm/blob/master/pkg/streamice/streamice_cg_solve_petsc.F" title="https://github.com/MITgcm/MITgcm/blob/master/pkg/streamice/streamice_cg_solve_petsc.F" data-loopstyle="linkonly" id="LPlnk158488">
subroutine</a> which "uses" a <a href="https://github.com/MITgcm/MITgcm/blob/master/pkg/streamice/streamice_arg_common_petsc.F" title="https://github.com/MITgcm/MITgcm/blob/master/pkg/streamice/streamice_arg_common_petsc.F" data-loopstyle="linkonly" id="LPlnk955117">
module</a>, and therefore the source should be compiled after the module source. (I'm required to use the module, rather than a common block, due to restrictions of an external library, PETSc.) I've only been able to do this by compiling without the -j option
and ensuring the alphabetical order of compilation. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
However, I have seen that some packages (e.g. ptracers) trigger what looks like dependencies in the Makefile, e.g. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
PTRACERS_MOD.h: ptracers_dyn_state_mod.o ptracers_dyn_state_data_mod.o<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
Assuming this actually is a dependency of the type I seek, Im not able to figure out how it was generated. One difference is that "<span style="display: inline !important; background-color: rgb(255, 255, 255);" class="ContentPasted2">ptracers_dyn_state_data_mod"
is used in a header file (PTRACERS_MOD.h). Is there any way to change genmake2, or a file read by it, in order to ensure the compilation order I seek even when using parallel compilation?</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
<span style="display: inline !important; background-color: rgb(255, 255, 255);" class="ContentPasted2"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
<span style="display: inline !important; background-color: rgb(255, 255, 255);" class="ContentPasted2">Many thanks</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted1">
<span style="display: inline !important; background-color: rgb(255, 255, 255);" class="ContentPasted2">Dan</span></div>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: start; color: rgb(136, 136, 136); background-color: rgb(255, 255, 255);" class="ContentPasted0">--</span><br style="font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: start; color: rgb(136, 136, 136); background-color: rgb(255, 255, 255);" class="ContentPasted0">
<div dir="ltr" data-smartmail="gmail_signature" style="font-family: Arial, Helvetica, sans-serif; font-size: small; text-align: start; color: rgb(136, 136, 136); background-color: rgb(255, 255, 255);">
<div dir="ltr">
<div><span style="font-size:12.8px" class="ContentPasted0">Daniel Goldberg, PhD (he/him)</span><br class="ContentPasted0">
</div>
<div dir="ltr"><span style="font-size:12.8px" class="ContentPasted0">Reader in Glaciology</span>
<div style="font-size:12.8px" class="ContentPasted0">School of Geosciences, University of Edinburgh<br class="ContentPasted0">
<span style="font-family: arial, helvetica, clean, sans-serif; line-height: 15px; color: rgb(0, 0, 0);" class="ContentPasted0">Geography Building, Drummond Street, Edinburgh EH8 9XP</span></div>
<div style="font-size:12.8px" class="ContentPasted0"><span style="font-family: arial, helvetica, clean, sans-serif; line-height: 15px; color: rgb(0, 0, 0);" class="ContentPasted0"><br>
</span></div>
<div style="font-size:12.8px" class="ContentPasted0"><span style="font-family: arial, helvetica, clean, sans-serif; line-height: 15px; color: rgb(0, 0, 0);" class="ContentPasted0">Please note I am not working Mondays during June/July/August 2023 due to childcare
responsibility.</span></div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.
</body>
</html>