diff --git a/src/engine.c b/src/engine.c index c320cbc68654ff6a3ab9742c94163f03a8712376..39e0069bfd76f2c30abda6fd04a03099f47080b7 100644 --- a/src/engine.c +++ b/src/engine.c @@ -1799,7 +1799,6 @@ void engine_make_extra_hydroloop_tasks(struct engine *e) { /* Cooling tasks should depend on kick and unlock sourceterms */ else if (t->type == task_type_cooling) { scheduler_addunlock(sched, t->ci->kick, t); - scheduler_addunlock(sched, t->ci->sourceterms, t); } /* source terms depend on cooling if performed, else on kick. It is the last task */ diff --git a/src/sourceterms.c b/src/sourceterms.c index 3615fb554ec24644af87702dc29dec7e1a761fca..2a5f326688b52b0e4abfde8dca823d765e0e8a5e 100644 --- a/src/sourceterms.c +++ b/src/sourceterms.c @@ -51,7 +51,7 @@ void sourceterms_print(struct sourceterms* source) { #ifdef SOURCETERMS_NONE error(" no sourceterms defined yet you ran with -F"); #ifdef SOURCETERMS_SN_FEEDBACK -#error can't have sourceterms when defined SOURCETERMS_NONE +#error "can't have sourceterms when defined SOURCETERMS_NONE" #endif #endif #ifdef SOURCETERMS_SN_FEEDBACK diff --git a/src/sourceterms_struct.h b/src/sourceterms_struct.h new file mode 100644 index 0000000000000000000000000000000000000000..b3c38986db52d72df825fda97b36c985dff922b6 --- /dev/null +++ b/src/sourceterms_struct.h @@ -0,0 +1,26 @@ +/******************************************************************************* + * This file is part of SWIFT. + * Coypright (c) 2015 Matthieu Schaller (matthieu.schaller@durham.ac.uk) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + ******************************************************************************/ +#ifndef SWIFT_SOURCETERMS_STRUCT_H +#define SWIFT_SOURCETERMS_STRUCT_H +#include "./const.h" +#ifdef SOURCETERMS_SN_FEEDBACK +#include "sourceterms/sn_feedback/sn_feedback_struct.h" +#endif + +#endif /* SWIFT_SOURCETERMS_STRUCT_H */