Skip to content

Commit 19965c9

Browse files
committed
fix: typos in comments
1 parent fafd267 commit 19965c9

24 files changed

+89
-89
lines changed

check/check.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ def test_enabled?(name)
10011001
return false
10021002
end
10031003
1004-
# check --execlude NAME
1004+
# check --exclude NAME
10051005
if !@exclude_patterns.empty?
10061006
@exclude_patterns.each do |pat|
10071007
if name =~ pat

check/examples.frm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ EOF
16481648
x*w(1) + x^2*w(2) + x^3*ww(3) + x^4*www(1) + x^5*www(2) + x^6*www(3)
16491649
")
16501650
*--#] Dictionaries_6 :
1651-
*--#[ DiracAlgebla_1 :
1651+
*--#[ DiracAlgebra_1 :
16521652
*
16531653
* Symmetric trace of a gamma5 and 12 regular matrices
16541654
*
@@ -1664,8 +1664,8 @@ tracen,1;
16641664
assert stdout =~ /Generated terms = 51975$/
16651665
assert stdout =~ /Terms in output = 51975$/
16661666
assert bytesize("F") == 459582 * wordsize
1667-
*--#] DiracAlgebla_1 :
1668-
*--#[ DiracAlgebla_2 :
1667+
*--#] DiracAlgebra_1 :
1668+
*--#[ DiracAlgebra_2 :
16691669
*
16701670
* Regular trace of a gamma5 and 12 regular matrices
16711671
*
@@ -1677,7 +1677,7 @@ trace4,1;
16771677
assert @stdout =~ /Generated terms = 1053$/
16781678
assert @stdout =~ /Terms in output = 1029$/
16791679
assert bytesize("F") == 10142 * wordsize
1680-
*--#] DiracAlgebla_2 :
1680+
*--#] DiracAlgebra_2 :
16811681
*--#[ NotesMetric_1 :
16821682
Indices m1,m2,m3,n1,n2,n3,i1,i2,i3;
16831683
Cfunction eta(symmetric),e(antisymmetric);

doc/manual/gamma.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ \chapter{Dirac algebra}
239239
trace, with all matrices with a different index, can be generated with
240240
the use of the 'distrib\_' function:
241241
% THIS EXAMPLE IS PART OF THE TESTSUITE. CHANGES HERE SHOULD BE APPLIED THERE AS
242-
% WELL! (DiracAlgebla_1)
242+
% WELL! (DiracAlgebra_1)
243243
\begin{verbatim}
244244
*
245245
* Symmetric trace of a gamma5 and 12 regular matrices
@@ -260,7 +260,7 @@ \chapter{Dirac algebra}
260260
This rather symmetric result is in contrast to the 4-dimensional result
261261
which is much shorter, but it is very unsymmetric:
262262
% THIS EXAMPLE IS PART OF THE TESTSUITE. CHANGES HERE SHOULD BE APPLIED THERE AS
263-
% WELL! (DiracAlgebla_2)
263+
% WELL! (DiracAlgebra_2)
264264
\begin{verbatim}
265265
*
266266
* Regular trace of a gamma5 and 12 regular matrices

sources/declare.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,11 @@ TP=T+1;while(TP<TT){if(*TP==AR.PolyFun){TP[2]|=(DIRTYFLAG|MUSTCLEANPRF);}TP+=TP[
333333

334334
#ifdef WITHFLOAT
335335
/*
336-
The following macro's are needed to avoid prblems with the compilers
336+
The following macro's are needed to avoid problems with the compilers
337337
and gmp.h. For the C++ files we need the Form include files to be inside
338338
and extern C {} environment, but then the structs.h needs gmp.h to
339339
recognise the mpf_t datatype. This causes no end of problems.
340-
Hence we collect the sensitve objects as (void *) and cast them to
340+
Hence we collect the sensitive objects as (void *) and cast them to
341341
something usable with the macro's below. This way the gmp.h file
342342
needs to be included only in a very limited number of .c files.
343343
*/

sources/diawrap.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ void ProcessDiagram(EGraph *eg, void *ti)
412412
}
413413
}
414414
//
415-
// Topology counter. We have exagerated a bit with the eye on the far future.
415+
// Topology counter. We have exaggerated a bit with the eye on the far future.
416416
//
417417
if ( info->numtopo-1 < MAXPOSITIVE ) {
418418
*fill++ = TOPO; *fill++ = FUNHEAD+2; FILLFUN(fill)
@@ -681,7 +681,7 @@ Bool ProcessTopology(EGraph *eg, void *ti)
681681
}
682682
}
683683
//
684-
// Topology counter. We have exagerated a bit with the eye on the far future.
684+
// Topology counter. We have exaggerated a bit with the eye on the far future.
685685
//
686686
if ( info->numtopo < MAXPOSITIVE ) {
687687
*fill++ = TOPO; *fill++ = FUNHEAD+2; FILLFUN(fill)

sources/extcmd.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ static FORM_INLINE char *addStr(char *to, char *from)
625625

626626

627627
/*Try to write (atomically) short buffer (of length count) to fd.
628-
timeout is a timeout in millisecs. Returns number of writen bytes or -1:*/
628+
timeout is a timeout in millisecs. Returns number of written bytes or -1:*/
629629
static FORM_INLINE ssize_t writeSome(int fd, char *buf, size_t count, int timeout)
630630
{
631631
ssize_t res = 0;
@@ -636,7 +636,7 @@ static FORM_INLINE ssize_t writeSome(int fd, char *buf, size_t count, int timeou
636636

637637
/*Add O_NONBLOCK:*/
638638
fcntl(fd,F_SETFL, flags | O_NONBLOCK);
639-
/* important -- in order to avoid blocking of short rceiver buffer*/
639+
/* important -- in order to avoid blocking of short receiver buffer*/
640640

641641
do{
642642
FD_ZERO(&wfds);
@@ -674,7 +674,7 @@ static FORM_INLINE ssize_t writeSome(int fd, char *buf, size_t count, int timeou
674674

675675
/*Try to read short buffer (of length not more than count)
676676
from fd. timeout is a timeout in millisecs. Returns number
677-
of writen bytes or -1: */
677+
of written bytes or -1: */
678678
static FORM_INLINE ssize_t readSome(int fd, char *buf, size_t count, int timeout)
679679
{
680680
ssize_t res = 0;
@@ -1223,13 +1223,13 @@ static FORM_INLINE void *createExternalChannel(
12231223
int gpid = 0;
12241224
ECINFOSTRUCT *psetInfo;
12251225
#ifdef WITHMPI
1226-
char statusbuf[2]={'\0','\0'};/*'\0' if run_cmd retuns ok, '!' othervise.*/
1226+
char statusbuf[2]={'\0','\0'};/*'\0' if run_cmd retuns ok, '!' otherwise.*/
12271227
#endif
12281228
extHandlerInit(h);
12291229

12301230
h->pid=0;
12311231

1232-
if( cmd==NULL ){/*Instead of strting a new command, use preset channel:*/
1232+
if( cmd==NULL ){/*Instead of starting a new command, use preset channel:*/
12331233
psetInfo=(ECINFOSTRUCT *)shellname;
12341234
shellname=NULL;
12351235
h->killSignal=0;

sources/float.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,7 +2277,7 @@ int ExpandEuler(WORD *term, WORD level)
22772277
5: Restart to see whether there are more Euler functions.
22782278
The compiler should check that there is no conflict between
22792279
the evaluate command and a potential polyfun or polyratfun.
2280-
Yet, when reading in expressions there can be a conclict.
2280+
Yet, when reading in expressions there can be a conflict.
22812281
Hence the Normalize routine should check as well.
22822282
22832283
par == MZV: MZV
@@ -2544,7 +2544,7 @@ int GetE(PHEAD mpf_t E)
25442544
#] GetE :
25452545
#[ GetEMconst :
25462546
2547-
Gets the Euler-Mascarponi constant. (em_ in Form notation)
2547+
Gets the Euler-Mascheroni constant. (em_ in Form notation)
25482548
25492549
25502550
int GetEMconst(PHEAD mpf_t EMconst)

sources/function.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ FullOK: if ( AN.SignCheck && AN.ExpectedSign ) goto NoGamma;
973973
else goto NoGamma;
974974
}
975975
else if ( *m < MINSPEC && *m >= (AM.OffsetVector+WILDOFFSET)
976-
&& *t < MINSPEC ) { /* Wildcard vecor */
976+
&& *t < MINSPEC ) { /* Wildcard vector */
977977
if ( !CheckWild(BHEAD *m-WILDOFFSET,VECTOVEC,*t,&newvalue) ) {
978978
AddWild(BHEAD *m-WILDOFFSET,VECTOVEC,newvalue);
979979
j = 1;

sources/gentopo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ T_MNode::T_MNode(int vid, int vdeg, Bool vext, int vclss)
239239
id = vid; // id of the node
240240
deg = vdeg; // degree of the node
241241
freelg = vdeg; // number of free legs
242-
clss = vclss; // class to which the node belogns
242+
clss = vclss; // class to which the node belongs
243243
ext = vext; // external node or not
244244
}
245245

sources/grcc.cc

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ extern "C" {
2121
// optimization : best combination depends on process by process
2222
#define SIMPSEL
2323

24-
// optimization : lower and upper bound of deg of taget node of connection.
24+
// optimization : lower and upper bound of deg of target node of connection.
2525
#define MINMAXLEG
2626

2727
// optimization : optimization with respect to 'extonly' particles
2828
#define OPTEXTONLY
2929

30-
// check uniqe interaction by name or by code
30+
// check unique interaction by name or by code
3131
#define UNIQINTR
3232

3333
// possible extensions of the program
3434
// #define ORBITS
3535

36-
// reverse direction of an adge of agraph when anti-particle flows on it.
36+
// reverse direction of an edge of agraph when anti-particle flows on it.
3737
// In this case the direction of edges will be diffrent
3838
// from ones of original mgraph.
3939
// #define EDGEPORDER
@@ -65,8 +65,8 @@ static OptDef optDef[] = {
6565
{"NoExtSelf", "Exclude graphs with 2-pt subgraphs at ext. particles", False, 0},
6666
{"NoAdj2PtV", "Exclude graphs with an edge connecting 2-pt vertices", False, 0},
6767
{"Block", "Exclude graphs with more than one block", False, 0},
68-
{"SymmInitial","Symmetrize initial particls", False, 0},
69-
{"SymmFinal", "Symmetrize final particls", False, 0},
68+
{"SymmInitial","Symmetrize initial particles", False, 0},
69+
{"SymmFinal", "Symmetrize final particles", False, 0},
7070
};
7171

7272
static int nOptDef = sizeof(optDef)/sizeof(OptDef);
@@ -162,7 +162,7 @@ void Options::setDefaultValue(void)
162162
{
163163
int j;
164164

165-
// defualt values
165+
// default values
166166
for (j = 0; j < GRCC_OPT_Size; j++) {
167167
values[j] = optDef[j].defaultv;
168168
}
@@ -1578,7 +1578,7 @@ Interaction::Interaction(Model *modl, int iid, const char *nam, int icd, int *cp
15781578
mdl = modl; // the model
15791579
id = iid; // id of this interaction
15801580
icode = icd; // id of this interaction
1581-
csum = csm; // the total oders of coupling constants
1581+
csum = csm; // the total orders of coupling constants
15821582
nlegs = nlgs; // the size of plist[]
15831583
loop = lp; // the number of loops
15841584

@@ -3150,7 +3150,7 @@ void Process::prProcess(void)
31503150
void Process::mkSProcess(void)
31513151
{
31523152
// Construct sprocesses
3153-
// Each sprocess is a set of nodes whose degree and oder of
3153+
// Each sprocess is a set of nodes whose degree and order of
31543154
// coupling constants are determined.
31553155
// Only the total coupling constants are considered here even if
31563156
// two or more coupling constants are defined in the model
@@ -3611,7 +3611,7 @@ MNode::MNode(int vid, int vclss, NCInput *mgi)
36113611
// vclss : class of the node
36123612

36133613
id = vid; // id of the node
3614-
clss = vclss; // class to which the node belogns
3614+
clss = vclss; // class to which the node belongs
36153615
deg = mgi->cldeg; // degree of the node
36163616
freelg = mgi->cldeg; // number of free legs
36173617
extloop = mgi->cltyp; // external node or not
@@ -3634,7 +3634,7 @@ MNode::MNode(int vid, int vdeg, int vextlp, int vclss, int cmin, int cmax)
36343634
id = vid; // id of the node
36353635
deg = vdeg; // degree of the node
36363636
freelg = vdeg; // number of free legs
3637-
clss = vclss; // class to which the node belogns
3637+
clss = vclss; // class to which the node belongs
36383638
extloop = vextlp; // external node or not
36393639
cmindeg = cmin; // min(deg of connectable vertex)
36403640
cmaxdeg = cmax; // max(deg of connectable vertex)
@@ -4275,8 +4275,8 @@ void MGraph::bisearchME(int nd, int pd, int ned, MCOpi *mopi, MCBlock *mblk, int
42754275

42764276
*next = 0; // # external below 'nd' inclusive
42774277
*nart = 0; // # articulation points 'nd' inclusive
4278-
nart1 = 0; // # articlulation points below 'nd'.
4279-
nart2 = 0; // # 'nd' is articlulation point then 1
4278+
nart1 = 0; // # articulation points below 'nd'.
4279+
nart2 = 0; // # 'nd' is articulation point then 1
42804280
ndart = 0; // # the number of blocks attached to 'nd'
42814281

42824282
newv = (bidef[nd] < 0);
@@ -4376,7 +4376,7 @@ void MGraph::bisearchME(int nd, int pd, int ned, MCOpi *mopi, MCBlock *mblk, int
43764376

43774377
mconn->pushEdge(nd, td);
43784378

4379-
// visit childe
4379+
// visit child
43804380
bisearchME(td, nd, adjMat[td][nd], &mopi1, &mblk1, &next1, &nart1);
43814381

43824382
// articulation point of bridge
@@ -4395,7 +4395,7 @@ void MGraph::bisearchME(int nd, int pd, int ned, MCOpi *mopi, MCBlock *mblk, int
43954395
// block
43964396
ndart++;
43974397
mconn->addArtic(nd, 1);
4398-
// dicad nparts from nodes below td
4398+
// discard nparts from nodes below td
43994399
mblk1.nartps = 2;
44004400
mconn->addBlock(&mblk1, blkt);
44014401
mblk1.init();
@@ -4897,7 +4897,7 @@ void MGraph::newGraph(MNodeClass *cl)
48974897
c1PI++;
48984898
}
48994899

4900-
// # no tadpolses
4900+
// # no tadpoles
49014901
if (!tadpole) {
49024902
cNoTadpole++;
49034903
}
@@ -6743,7 +6743,7 @@ void EGraph::biinitE(void)
67436743
//--------------------------------------------------------------
67446744
void EGraph::bisearchE(int nd, int *extlst, int *intlst, int *opiext, int *opiloop)
67456745
{
6746-
// Searchs in the spanning tree below 'nd'.
6746+
// Search in the spanning tree below 'nd'.
67476747
// Arguments:
67486748
// nd : input : node to be visited
67496749
// extlst : output : set of external lines in the current 1PI comp.
@@ -7552,7 +7552,7 @@ Assign::~Assign(void)
75527552
//---------------------------------------------------------------
75537553
void Assign::prCand(const char *msg)
75547554
{
7555-
// Print candidte table
7555+
// Print candidate table
75567556
int n, e, ne;
75577557
AEdge *ed;
75587558

@@ -7840,7 +7840,7 @@ Bool Assign::assignVertex(int v)
78407840
astack->checkPoint(sav);
78417841
saveCouple(savc0);
78427842

7843-
// assign to all vertices with only one candicate
7843+
// assign to all vertices with only one candidate
78447844
done = False;
78457845
for (n = 0; n < nNodes; n++) {
78467846

@@ -8016,7 +8016,7 @@ Bool Assign::allAssigned(void)
80168016
#ifdef CHECK
80178017
checkAG("allAssigned");
80188018
#endif
8019-
// fill imformation to resulting Egraph
8019+
// fill information to resulting Egraph
80208020
fillEGraph(nAGraphs, nsym, esym, nsym1);
80218021

80228022
#ifdef OPTEXTONLY
@@ -8064,7 +8064,7 @@ Bool Assign::fromMGraph(void)
80648064
nodes[j] = new ANode(mgraph->nodes[j]->deg);
80658065
}
80668066

8067-
// initializaion of edge table
8067+
// initialization of edge table
80688068
nETotal = 0;
80698069

80708070
// List of all particles
@@ -8913,7 +8913,7 @@ Bool Assign::updateCandNode(int v)
89138913
return False;
89148914
}
89158915

8916-
// list of possible particles on the leges of the vertex.
8916+
// list of possible particles on the edges of the vertex.
89178917
// pdass = (set of assigned particles)
89188918
// puass = (list of particles of edges with two of more candidates)
89198919

@@ -9273,8 +9273,8 @@ int Assign::cmpPermGraph(int *p, MNodeClass *cl)
92739273
//--------------------------------------------------------------
92749274
int Assign::cmpNodes(int nd0, int nd1, MNodeClass *cn)
92759275
{
9276-
// Comarison of two nodes 'nd0' and 'nd1'
9277-
// Ordering is lexcographical (class, connection configuration)
9276+
// Comparison of two nodes 'nd0' and 'nd1'
9277+
// Ordering is lexicographical (class, connection configuration)
92789278
//
92799279

92809280
int cmp;
@@ -9886,7 +9886,7 @@ static void prilist(int n, const int *a, const char *msg)
98869886
//------------------------------------------------------------
98879887
static int nextPerm(int nelem, int nclass, int *cl, int *r, int *q, int *p, int count)
98889888
{
9889-
// Sequatial generation of all permutations.
9889+
// Sequential generation of all permutations.
98909890

98919891
int j, k, n, e, t;
98929892
Bool b;

0 commit comments

Comments
 (0)