Oui, Au detail pres que la variable a deux noms différent : "eq_death_rate_deb" et "eq_death_rate" Le 20/02/2024 à 16:24, Stephanie MAHEVAS a écrit :
donc ce code devrait fonctionner ?
Stringeq_death_rate_deb=pop.getNaturalDeathRate().getContent(); eq_death_rate=eq_death_rate.replaceFirst(".*\n","double Ktemp=context.getValueAndCompute(\"nephrops.naturalDeathRate.Ktemp\","+mor+");\n"); pop.getNaturalDeathRate().setContent(eq_death_rate); Le 20/02/2024 à 16:10, Eric Chatellier a écrit :
eq_death_rate = eq_death_rate.replaceFirst(".*\n", "double Ktemp=context.getValueAndCompute(\"nephrops.naturalDeathRate.Ktemp\","+mor+");\n"); -- ...................................................................... Stephanie MAHEVAS UMR MARBEC - site de Sète IFREMER/HM https://annuaire.ifremer.fr/cv/16343/
Tel: (33) 04 99 57 32 39 (8239) - 06 75 83 59 33
o \ o / _ o __| \ / |__ o _ \ o / o /|\ | /\ ___\o \o | o/ o/__ /\ | /|\ / \ / \ | \ /) | ( \ /o\ / ) | (\ / | / \ / \ ......................................................................
_______________________________________________ Isis-fish-users mailing list Isis-fish-users@list.isis-fish.org https://list.isis-fish.org/cgi-bin/mailman/listinfo/isis-fish-users Archives et moteur de recherche: http://list.isis-fish.org/pipermail/isis-fish-users/
-- Éric Chatellier - www.codelutin.com - 02.40.50.29.28