Skip to content

Commit

Permalink
Merge branch develop into master for 2019 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ftessier committed Apr 11, 2019
2 parents 571baca + eba8ccd commit c5537de
Show file tree
Hide file tree
Showing 215 changed files with 21,730 additions and 4,500 deletions.
27 changes: 14 additions & 13 deletions HEN_HOUSE/cutils/load_beamlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ char *beamlib_maxenergy_name = beamlib_maxenergy_name1;

DLL_HANDLE handle = 0;

typedef void (*InitFunction)(const int *, const int *,
typedef void (*InitFunction)(const int *, const int *, const int *,
const char *, const char *, const char *,
const char *, const char *, int,int,int,int,int);
typedef void (*FinishFunction)();
Expand Down Expand Up @@ -363,7 +363,8 @@ void C_CONVENTION FINISH_BEAMSOURCE__() { finish_beamsource(); }
#endif

int MYF77OBJ_(init_beamsource,INIT_BEAMSOURCE)(
const int *i_par, const int *i_logunit, const char *config_name,
const int *i_par, const int *n_par, const int *i_logunit,
const char *config_name,
const char *hhouse, const char *ehome, const char *beam_code,
const char *pfile, const char *ifile,
int ncn, int nhh, int neh, int nbc, int npf, int nif) {
Expand Down Expand Up @@ -487,14 +488,14 @@ int MYF77OBJ_(init_beamsource,INIT_BEAMSOURCE)(
printf("Failed to resolve the finish function\n");
return 4;
}
libinit(i_par,i_logunit,hhouse,ehome,beam_code,pfile,ifile,nhh,neh,nbc,npf,nif);
libinit(i_par,n_par,i_logunit,hhouse,ehome,beam_code,pfile,ifile,nhh,neh,nbc,npf,nif);

free(libname);

return 0;
}
#ifdef MAKE_WIN_DISTRIBUTION
int C_CONVENTION init_beamsource_(const int *i_par, const int *i_logunit,
int C_CONVENTION init_beamsource_(const int *i_par, const int *n_par, const int *i_logunit,
const char *config_name, const char *hhouse, const char *ehome,
const char *beam_code, const char *pfile, const char *ifile,
int ncn, int nhh, int neh, int nbc, int npf, int nif) {
Expand All @@ -504,10 +505,10 @@ int C_CONVENTION init_beamsource_(const int *i_par, const int *i_logunit,
beamlib_motionsample_name = beamlib_motionsample_name2;
beamlib_phspmotionsample_name = beamlib_phspmotionsample_name2;
beamlib_maxenergy_name = beamlib_maxenergy_name2;
return init_beamsource(i_par,i_logunit,config_name,hhouse,ehome,beam_code,pfile,ifile,
return init_beamsource(i_par,n_par,i_logunit,config_name,hhouse,ehome,beam_code,pfile,ifile,
ncn,nhh,neh,nbc,npf,nif);
}
int C_CONVENTION init_beamsource__(const int *i_par, const int *i_logunit,
int C_CONVENTION init_beamsource__(const int *i_par, const int *n_par, const int *i_logunit,
const char *config_name, const char *hhouse, const char *ehome,
const char *beam_code, const char *pfile, const char *ifile,
int ncn, int nhh, int neh, int nbc, int npf, int nif) {
Expand All @@ -517,10 +518,10 @@ int C_CONVENTION init_beamsource__(const int *i_par, const int *i_logunit,
beamlib_motionsample_name = beamlib_motionsample_name3;
beamlib_phspmotionsample_name = beamlib_phspmotionsample_name3;
beamlib_maxenergy_name = beamlib_maxenergy_name3;
return init_beamsource(i_par,i_logunit,config_name,hhouse,ehome,beam_code,pfile,ifile,
return init_beamsource(i_par,n_par,i_logunit,config_name,hhouse,ehome,beam_code,pfile,ifile,
ncn,nhh,neh,nbc,npf,nif);
}
int C_CONVENTION INIT_BEAMSOURCE(const int *i_par, const int *i_logunit,
int C_CONVENTION INIT_BEAMSOURCE(const int *i_par, const int *n_par, const int *i_logunit,
const char *config_name, const char *hhouse, const char *ehome,
const char *beam_code, const char *pfile, const char *ifile,
int ncn, int nhh, int neh, int nbc, int npf, int nif) {
Expand All @@ -530,10 +531,10 @@ int C_CONVENTION INIT_BEAMSOURCE(const int *i_par, const int *i_logunit,
beamlib_motionsample_name = beamlib_motionsample_name4;
beamlib_phspmotionsample_name = beamlib_phspmotionsample_name4;
beamlib_maxenergy_name = beamlib_maxenergy_name4;
return init_beamsource(i_par,i_logunit,config_name,hhouse,ehome,beam_code,pfile,ifile,
return init_beamsource(i_par,n_par,i_logunit,config_name,hhouse,ehome,beam_code,pfile,ifile,
ncn,nhh,neh,nbc,npf,nif);
}
int C_CONVENTION INIT_BEAMSOURCE_(const int *i_par, const int *i_logunit,
int C_CONVENTION INIT_BEAMSOURCE_(const int *i_par, const int *n_par, const int *i_logunit,
const char *config_name, const char *hhouse, const char *ehome,
const char *beam_code, const char *pfile, const char *ifile,
int ncn, int nhh, int neh, int nbc, int npf, int nif) {
Expand All @@ -543,10 +544,10 @@ int C_CONVENTION INIT_BEAMSOURCE_(const int *i_par, const int *i_logunit,
beamlib_motionsample_name = beamlib_motionsample_name5;
beamlib_phspmotionsample_name = beamlib_phspmotionsample_name5;
beamlib_maxenergy_name = beamlib_maxenergy_name5;
return init_beamsource(i_par,i_logunit,config_name,hhouse,ehome,beam_code,pfile,ifile,
return init_beamsource(i_par,n_par,i_logunit,config_name,hhouse,ehome,beam_code,pfile,ifile,
ncn,nhh,neh,nbc,npf,nif);
}
int C_CONVENTION INIT_BEAMSOURCE__(const int *i_par, const int *i_logunit,
int C_CONVENTION INIT_BEAMSOURCE__(const int *i_par, const int *n_par, const int *i_logunit,
const char *config_name, const char *hhouse, const char *ehome,
const char *beam_code, const char *pfile, const char *ifile,
int ncn, int nhh, int neh, int nbc, int npf, int nif) {
Expand All @@ -556,7 +557,7 @@ int C_CONVENTION INIT_BEAMSOURCE__(const int *i_par, const int *i_logunit,
beamlib_motionsample_name = beamlib_motionsample_name6;
beamlib_phspmotionsample_name = beamlib_phspmotionsample_name6;
beamlib_maxenergy_name = beamlib_maxenergy_name6;
return init_beamsource(i_par,i_logunit,config_name,hhouse,ehome,beam_code,pfile,ifile,
return init_beamsource(i_par,n_par,i_logunit,config_name,hhouse,ehome,beam_code,pfile,ifile,
ncn,nhh,neh,nbc,npf,nif);
}
#endif
Expand Down
3 changes: 2 additions & 1 deletion HEN_HOUSE/doc/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@
###############################################################################

docs = $(sort $(wildcard pirs*))
docs += getting-started

.PHONY: pirs*

all:
./makedoc.sh $(docs)

pirs*:
./makedoc.sh $@
./makedoc.sh $@
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c5537de

Please sign in to comment.